aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/dnstest/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/pkg/dnstest/server_test.go')
-rw-r--r--plugin/pkg/dnstest/server_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/pkg/dnstest/server_test.go b/plugin/pkg/dnstest/server_test.go
index 3f23c340b..41450e49e 100644
--- a/plugin/pkg/dnstest/server_test.go
+++ b/plugin/pkg/dnstest/server_test.go
@@ -25,4 +25,13 @@ func TestNewServer(t *testing.T) {
if ret.Id != m.Id {
t.Fatalf("Msg ID's should match, expected %d, got %d", m.Id, ret.Id)
}
+
+ c.Net = "udp"
+ ret, _, err = c.Exchange(m, s.Addr)
+ if err != nil {
+ t.Fatalf("Could not send message to dnstest.Server: %s", err)
+ }
+ if ret.Id != m.Id {
+ t.Fatalf("Msg ID's should match, expected %d, got %d", m.Id, ret.Id)
+ }
}