forked from quic-go/quic-go
fix a flaky proxy test
This commit is contained in:
@@ -191,7 +191,7 @@ var _ = Describe("QUIC Proxy", func() {
|
|||||||
Eventually(getClientDict).Should(HaveLen(1))
|
Eventually(getClientDict).Should(HaveLen(1))
|
||||||
var conn *connection
|
var conn *connection
|
||||||
for _, conn = range getClientDict() {
|
for _, conn = range getClientDict() {
|
||||||
Expect(atomic.LoadUint64(&conn.incomingPacketCounter)).To(Equal(uint64(1)))
|
Eventually(func() uint64 { return atomic.LoadUint64(&conn.incomingPacketCounter) }).Should(Equal(uint64(1)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// send the second packet
|
// send the second packet
|
||||||
|
|||||||
Reference in New Issue
Block a user