aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/proxy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/forward/proxy_test.go')
-rw-r--r--plugin/forward/proxy_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/forward/proxy_test.go b/plugin/forward/proxy_test.go
index dc1f5fb18..74a0b5c4b 100644
--- a/plugin/forward/proxy_test.go
+++ b/plugin/forward/proxy_test.go
@@ -23,7 +23,8 @@ func TestProxy(t *testing.T) {
defer s.Close()
c := caddy.NewTestController("dns", "forward . "+s.Addr)
- f, err := parseForward(c)
+ fs, err := parseForward(c)
+ f := fs[0]
if err != nil {
t.Errorf("Failed to create forwarder: %s", err)
}
@@ -53,7 +54,8 @@ func TestProxyTLSFail(t *testing.T) {
defer s.Close()
c := caddy.NewTestController("dns", "forward . tls://"+s.Addr)
- f, err := parseForward(c)
+ fs, err := parseForward(c)
+ f := fs[0]
if err != nil {
t.Errorf("Failed to create forwarder: %s", err)
}