From 38ed00fb634dc8a73eb26145c7ecdcd62b4c3f8b Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sun, 15 Oct 2023 15:35:33 -0700 Subject: [PATCH] Fix protoproxy test flakiness --- utils/protoproxy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/protoproxy_test.go b/utils/protoproxy_test.go index 3a1e34b1..e25283e0 100644 --- a/utils/protoproxy_test.go +++ b/utils/protoproxy_test.go @@ -79,7 +79,7 @@ func TestProtoProxy(t *testing.T) { proxy.Stop() for i := 0; i < 10; i++ { - if numGoRoutines <= runtime.NumGoroutine() { + if runtime.NumGoroutine() <= numGoRoutines { break } time.Sleep(100 * time.Millisecond)