mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
fix TestNewServer() hanging (#1786)
This commit is contained in:
committed by
Miek Gieben
parent
643550eabe
commit
0455febc34
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user