From 2f54b76c5c155b6449d6d9cc4827c93b17a6b885 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 18 Apr 2024 18:45:40 +0200 Subject: [PATCH] fix(tests): 30s to cancel processes to avoid false negatives on slower machines it can take more than 1 second to cancel leftover tasks (cherry picked from commit 6316e21be285a968647a602be2441b3eb3c962bc) --- tests/test_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_utils.go b/tests/test_utils.go index 6d3512ca10..5837e1263c 100644 --- a/tests/test_utils.go +++ b/tests/test_utils.go @@ -236,7 +236,7 @@ func PrepareTestEnv(t testing.TB, skip ...int) func() { // kill all background processes to prevent them from interfering with the fixture loading // see https://codeberg.org/forgejo/forgejo/issues/2962 - cancelProcesses(t, time.Second) + cancelProcesses(t, 30*time.Second) t.Cleanup(func() { cancelProcesses(t, 0) }) // cancel remaining processes in a non-blocking way // load database fixtures