From c2241248c881fc4437c71706021a6ebb793cd3b7 Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Wed, 6 Sep 2023 15:29:44 -0700 Subject: [PATCH] tstest: relax ResourceCheck to 3s It was only waiting for 0.5s (5ms * 100), but our CI is too slow so make it wait up to 3s (10ms * 300). Updates tailscale/corp#14515 Signed-off-by: Maisem Ali --- tstest/resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tstest/resource.go b/tstest/resource.go index d1b515102..ebe6af054 100644 --- a/tstest/resource.go +++ b/tstest/resource.go @@ -22,11 +22,11 @@ func ResourceCheck(tb testing.TB) { return } // Goroutines might be still exiting. - for i := 0; i < 100; i++ { + for i := 0; i < 300; i++ { if runtime.NumGoroutine() <= startN { return } - time.Sleep(5 * time.Millisecond) + time.Sleep(10 * time.Millisecond) } endN, endStacks := goroutines() if endN <= startN {