From 102818c39331343f33a46be3148979f3adbf9b80 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sun, 15 Oct 2023 16:22:34 -0700 Subject: [PATCH] Fix protoproxy test flakiness (#493) --- 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)