mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 10:25:10 -05:00
add goroutine to check hosts file for updates (#1180)
* add goroutine to check hosts file for updates * rename parseFile to parseReader, remove extra error check
This commit is contained in:
@@ -141,7 +141,7 @@ func TestHostsInlineParse(t *testing.T) {
|
||||
t.Fatalf("Test %d expected fallthrough of %v, got %v", i, test.expectedFallthrough, h.Fallthrough)
|
||||
}
|
||||
for k, expectedVal := range test.expectedbyAddr {
|
||||
if val, ok := h.byAddr[k]; !ok {
|
||||
if val, ok := h.hmap.byAddr[k]; !ok {
|
||||
t.Fatalf("Test %d expected %v, got no entry", i, k)
|
||||
} else {
|
||||
if len(expectedVal) != len(val) {
|
||||
|
||||
Reference in New Issue
Block a user