diff options
author | 2017-10-31 01:40:47 -0600 | |
---|---|---|
committer | 2017-10-31 07:40:47 +0000 | |
commit | 1d4ac4adbbfa7f2f4d3549e3e77056f2503d8f8e (patch) | |
tree | c6bbaa2606ee41d090467b1519cc0d095a0163f3 /plugin/hosts/setup_test.go | |
parent | 87c9f00c83212734d7ab0172ac34aee5bd271b07 (diff) | |
download | coredns-1d4ac4adbbfa7f2f4d3549e3e77056f2503d8f8e.tar.gz coredns-1d4ac4adbbfa7f2f4d3549e3e77056f2503d8f8e.tar.zst coredns-1d4ac4adbbfa7f2f4d3549e3e77056f2503d8f8e.zip |
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
Diffstat (limited to 'plugin/hosts/setup_test.go')
-rw-r--r-- | plugin/hosts/setup_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/hosts/setup_test.go b/plugin/hosts/setup_test.go index fefed6c72..b401d58dc 100644 --- a/plugin/hosts/setup_test.go +++ b/plugin/hosts/setup_test.go @@ -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) { |