From 00f4900ba722da54b8c9afb610d7bd51cff21146 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Thu, 10 May 2018 21:38:49 +0200 Subject: [PATCH] build: Increase test timeout to 2min (#4937) --- build.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.go b/build.go index f1e6de0d..3490ae19 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...)...) } }