aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/truncated_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-09-19 07:29:37 +0100
committerGravatar GitHub <noreply@github.com> 2018-09-19 07:29:37 +0100
commitc349446a23440b336f4ca21900cce4d6a031cdf5 (patch)
tree983ab79eac59d59e36dfbf4a29fcf1bd811110d5 /plugin/forward/truncated_test.go
parent2f1223c36a0294cd07e299aaa792a0b3f51f687a (diff)
downloadcoredns-c349446a23440b336f4ca21900cce4d6a031cdf5.tar.gz
coredns-c349446a23440b336f4ca21900cce4d6a031cdf5.tar.zst
coredns-c349446a23440b336f4ca21900cce4d6a031cdf5.zip
Cleanup ParseHostOrFile (#2100)
Create plugin/pkg/transport that holds the transport related functions. This needed to be a new pkg to prevent cyclic import errors. This cleans up a bunch of duplicated code in core/dnsserver that also tried to parse a transport (now all done in transport.Parse). Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/forward/truncated_test.go')
-rw-r--r--plugin/forward/truncated_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin/forward/truncated_test.go b/plugin/forward/truncated_test.go
index b7ff47c14..40fc8185f 100644
--- a/plugin/forward/truncated_test.go
+++ b/plugin/forward/truncated_test.go
@@ -5,6 +5,7 @@ import (
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
+ "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
@@ -34,7 +35,7 @@ func TestLookupTruncated(t *testing.T) {
})
defer s.Close()
- p := NewProxy(s.Addr, DNS)
+ p := NewProxy(s.Addr, transport.DNS)
f := New()
f.SetProxy(p)
defer f.Close()
@@ -88,9 +89,9 @@ func TestForwardTruncated(t *testing.T) {
f := New()
- p1 := NewProxy(s.Addr, DNS)
+ p1 := NewProxy(s.Addr, transport.DNS)
f.SetProxy(p1)
- p2 := NewProxy(s.Addr, DNS)
+ p2 := NewProxy(s.Addr, transport.DNS)
f.SetProxy(p2)
defer f.Close()