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)
This commit is contained in:
parent
8f06a99c2c
commit
2f54b76c5c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// kill all background processes to prevent them from interfering with the fixture loading
|
||||||
// see https://codeberg.org/forgejo/forgejo/issues/2962
|
// 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
|
t.Cleanup(func() { cancelProcesses(t, 0) }) // cancel remaining processes in a non-blocking way
|
||||||
|
|
||||||
// load database fixtures
|
// load database fixtures
|
||||||
|
|
Loading…
Reference in a new issue