From ace7f609a39ec500ab9904c19c80f1d27fe8c359 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 2 Jul 2018 15:25:20 +0700 Subject: [PATCH] fix a flaky proxy test --- integrationtests/tools/proxy/proxy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrationtests/tools/proxy/proxy_test.go b/integrationtests/tools/proxy/proxy_test.go index 01cd612d5..945a9c48d 100644 --- a/integrationtests/tools/proxy/proxy_test.go +++ b/integrationtests/tools/proxy/proxy_test.go @@ -191,7 +191,7 @@ var _ = Describe("QUIC Proxy", func() { Eventually(getClientDict).Should(HaveLen(1)) var conn *connection 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