fix TestNewServer() hanging (#1786)
This commit is contained in:
parent
643550eabe
commit
0455febc34
2 changed files with 18 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue