diff --git a/build.go b/build.go index f1e6de0d5..3490ae195 100644 --- a/build.go +++ b/build.go @@ -47,6 +47,7 @@ var ( installSuffix string pkgdir string debugBinary bool + timeout = "120s" ) type target struct { @@ -401,9 +402,9 @@ func test(pkgs ...string) { } 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 { - runPrint("go", append([]string{"test", "-short", "-timeout", "60s", "-tags", "purego"}, pkgs...)...) + runPrint("go", append([]string{"test", "-short", "-timeout", timeout, "-tags", "purego"}, pkgs...)...) } }