diff options
author | 2018-06-15 16:12:56 +0100 | |
---|---|---|
committer | 2018-06-15 08:12:56 -0700 | |
commit | 177e32b62e1bd937317ec3fd7c7f3a8114c52d77 (patch) | |
tree | 30be44ecbeb89ad8c196e9178824ef029609f536 /plugin/file/cname_test.go | |
parent | 70c957d885a6c6b33a0828c680e451a9e3a3994a (diff) | |
download | coredns-177e32b62e1bd937317ec3fd7c7f3a8114c52d77.tar.gz coredns-177e32b62e1bd937317ec3fd7c7f3a8114c52d77.tar.zst coredns-177e32b62e1bd937317ec3fd7c7f3a8114c52d77.zip |
plugin/forward: add REFUSED test (#1878)
add a test to see if we copy the rcode correctly. Some minor cleanup in
import ordering and renaming NewUpstream to New as we already are in the
upstream package.
Diffstat (limited to 'plugin/file/cname_test.go')
-rw-r--r-- | plugin/file/cname_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/file/cname_test.go b/plugin/file/cname_test.go index 0bc907b1f..10eb7d934 100644 --- a/plugin/file/cname_test.go +++ b/plugin/file/cname_test.go @@ -74,7 +74,7 @@ func TestLookupCNAMEExternal(t *testing.T) { if err != nil { t.Fatalf("Expected no error when reading zone, got %q", err) } - zone.Upstream, _ = upstream.NewUpstream([]string{"8.8.8.8:53"}) // TODO(miek): point to local instance + zone.Upstream, _ = upstream.New([]string{"8.8.8.8:53"}) // TODO(miek): point to local instance fm := File{Next: test.ErrorHandler(), Zones: Zones{Z: map[string]*Zone{name: zone}, Names: []string{name}}} ctx := context.TODO() |