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)