mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 11:13:27 +00:00
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.
This commit is contained in:
committed by
Ron Evans
parent
f316ebc23b
commit
04cec56141
+1
-1
@@ -161,7 +161,7 @@ func runTest(path, target string, t *testing.T) {
|
|||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
// Terminate the process if it runs too long.
|
// Terminate the process if it runs too long.
|
||||||
timer := time.NewTimer(1 * time.Second)
|
timer := time.NewTimer(10 * time.Second)
|
||||||
select {
|
select {
|
||||||
case <-runComplete:
|
case <-runComplete:
|
||||||
timer.Stop()
|
timer.Stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user