forked from quic-go/quic-go
fix flaky proxy shutdown test
This commit is contained in:
@@ -59,8 +59,11 @@ var _ = Describe("QUIC Proxy", func() {
|
|||||||
// sometimes it takes a while for the OS to free the port
|
// sometimes it takes a while for the OS to free the port
|
||||||
Eventually(func() error {
|
Eventually(func() error {
|
||||||
ln, err := net.ListenUDP("udp", addr)
|
ln, err := net.ListenUDP("udp", addr)
|
||||||
defer ln.Close()
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
}
|
||||||
|
ln.Close()
|
||||||
|
return nil
|
||||||
}).ShouldNot(HaveOccurred())
|
}).ShouldNot(HaveOccurred())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user