From 04cec56141a2021ca9634be9e6d76bc8221e0a29 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 22 Mar 2020 20:38:57 +0100 Subject: [PATCH] main: extend test timeout from 1s to 10s This should avoid the rather frequent "test ran too long, terminating..." error message that often occurs in CI and when running `go test` manually. Apparently I was too optimistic: some tests take longer than 1 second to run. --- main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_test.go b/main_test.go index 9140bae4..f91ed06f 100644 --- a/main_test.go +++ b/main_test.go @@ -161,7 +161,7 @@ func runTest(path, target string, t *testing.T) { } go func() { // Terminate the process if it runs too long. - timer := time.NewTimer(1 * time.Second) + timer := time.NewTimer(10 * time.Second) select { case <-runComplete: timer.Stop()