diff --git a/client_test.go b/client_test.go index 23e2913c..be2bb95e 100644 --- a/client_test.go +++ b/client_test.go @@ -6,6 +6,7 @@ import ( "errors" "net" "runtime" + "time" "github.com/lucas-clemente/quic-go/protocol" "github.com/lucas-clemente/quic-go/qerr" @@ -61,6 +62,7 @@ var _ = Describe("Client", func() { }) It("properly closes the client", func(done Done) { + time.Sleep(10 * time.Millisecond) // Wait for old goroutines to finish numGoRoutines := runtime.NumGoroutine() startUDPConn() var stoppedListening bool