diff options
Diffstat (limited to 'plugin/auto/watcher_test.go')
-rw-r--r-- | plugin/auto/watcher_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/auto/watcher_test.go b/plugin/auto/watcher_test.go index a7013448b..be2a0d48b 100644 --- a/plugin/auto/watcher_test.go +++ b/plugin/auto/watcher_test.go @@ -30,12 +30,12 @@ func TestWatcher(t *testing.T) { a.Walk() - // example.org and example.com should exist - if x := len(a.Zones.Z["example.org."].All()); x != 4 { - t.Fatalf("Expected 4 RRs, got %d", x) + // example.org and example.com should exist, we have 3 apex rrs and 1 "real" record. All() returns the non-apex ones. + if x := len(a.Zones.Z["example.org."].All()); x != 1 { + t.Fatalf("Expected 1 RRs, got %d", x) } - if x := len(a.Zones.Z["example.com."].All()); x != 4 { - t.Fatalf("Expected 4 RRs, got %d", x) + if x := len(a.Zones.Z["example.com."].All()); x != 1 { + t.Fatalf("Expected 1 RRs, got %d", x) } // Now remove one file, rescan and see if it's gone. |