Merge pull request #940 from lucas-clemente/fix-939

fix flaky proxy shutdown test
This commit is contained in:
Marten Seemann
2017-11-07 20:55:42 +07:00
committed by GitHub

View File

@@ -59,8 +59,11 @@ var _ = Describe("QUIC Proxy", func() {
// sometimes it takes a while for the OS to free the port
Eventually(func() error {
ln, err := net.ListenUDP("udp", addr)
defer ln.Close()
return err
if err != nil {
return err
}
ln.Close()
return nil
}).ShouldNot(HaveOccurred())
})