mirror of
https://github.com/libp2p/go-reuseport.git
synced 2025-10-05 14:56:51 +08:00
Respect context deadlines
This commit is contained in:
@@ -454,6 +454,10 @@ func TestPacketListenDialSamePort(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if err := c1.SetReadDeadline(time.Now().Add(time.Second * 2)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if _, err := c1.Read(hello2); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user