diff options
author | Ayke van Laethem <[email protected]> | 2020-03-22 20:38:57 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2020-03-22 21:57:40 +0100 |
commit | 04cec56141a2021ca9634be9e6d76bc8221e0a29 (patch) | |
tree | be5211bc7db0f42d6d72c9cb445c041b76345594 | |
parent | f316ebc23b025e497931cfe420ec143f1a217b57 (diff) | |
download | tinygo-04cec56141a2021ca9634be9e6d76bc8221e0a29.tar.gz tinygo-04cec56141a2021ca9634be9e6d76bc8221e0a29.zip |
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.
-rw-r--r-- | main_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main_test.go b/main_test.go index 9140bae49..f91ed06f2 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() |