From 7253f708a89d939c8c351edf537dc90e7025f941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Tyczy=C5=84ski?= Date: Thu, 3 Nov 2022 10:46:47 +0100 Subject: [PATCH] Decrease goroutines --- test/integration/framework/etcd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/framework/etcd.go b/test/integration/framework/etcd.go index 3a9844b843f..805fbeb76a4 100644 --- a/test/integration/framework/etcd.go +++ b/test/integration/framework/etcd.go @@ -196,9 +196,9 @@ func EtcdMain(tests func() int) { checkNumberOfGoroutines := func() (bool, error) { // Leave some room for goroutines we can not get rid of // like k8s.io/klog/v2.(*loggingT).flushDaemon() - // TODO(#108483): Reduce this number once we address the - // couple remaining issues. - if dg := runtime.NumGoroutine() - before; dg <= 9 { + // TODO(#108483): Figure out if we can reduce this + // further (ideally down to zero). + if dg := runtime.NumGoroutine() - before; dg <= 4 { return true, nil } // Allow goroutines to schedule and die off.