build: Increase test timeout to 2min (#4937)
This commit is contained in:
parent
e125f8b05b
commit
00f4900ba7
5
build.go
5
build.go
@ -47,6 +47,7 @@ var (
|
|||||||
installSuffix string
|
installSuffix string
|
||||||
pkgdir string
|
pkgdir string
|
||||||
debugBinary bool
|
debugBinary bool
|
||||||
|
timeout = "120s"
|
||||||
)
|
)
|
||||||
|
|
||||||
type target struct {
|
type target struct {
|
||||||
@ -401,9 +402,9 @@ func test(pkgs ...string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if useRace {
|
if useRace {
|
||||||
runPrint("go", append([]string{"test", "-short", "-race", "-timeout", "60s", "-tags", "purego"}, pkgs...)...)
|
runPrint("go", append([]string{"test", "-short", "-race", "-timeout", timeout, "-tags", "purego"}, pkgs...)...)
|
||||||
} else {
|
} else {
|
||||||
runPrint("go", append([]string{"test", "-short", "-timeout", "60s", "-tags", "purego"}, pkgs...)...)
|
runPrint("go", append([]string{"test", "-short", "-timeout", timeout, "-tags", "purego"}, pkgs...)...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user