From a9e5686cdf8ca5b5e98975000897319bc77a0dc2 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 4 May 2020 12:50:00 +0700 Subject: [PATCH] fix flaky proxy test --- integrationtests/tools/proxy/proxy_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integrationtests/tools/proxy/proxy_test.go b/integrationtests/tools/proxy/proxy_test.go index 029fa7189..1b1403c64 100644 --- a/integrationtests/tools/proxy/proxy_test.go +++ b/integrationtests/tools/proxy/proxy_test.go @@ -2,6 +2,7 @@ package quicproxy import ( "bytes" + "fmt" "net" "runtime/pprof" "strconv" @@ -9,10 +10,9 @@ import ( "sync/atomic" "time" - "fmt" - "github.com/lucas-clemente/quic-go/internal/protocol" "github.com/lucas-clemente/quic-go/internal/wire" + . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) @@ -160,8 +160,8 @@ var _ = Describe("QUIC Proxy", func() { data := buf[0:n] serverReceivedPackets <- packetData(data) // echo the packet - serverConn.WriteToUDP(data, addr) atomic.AddInt32(&serverNumPacketsSent, 1) + serverConn.WriteToUDP(data, addr) } }() })