Makefile: reduce test timeout when TRAVIS==true
Reduces test timeout by one minute so that Go will timeout before Travis-CI and report useful informations about the hang.
This commit is contained in:
parent
682ee7ffd0
commit
55543e2570
@ -278,6 +278,9 @@ func testFlags() []string {
|
||||
}
|
||||
if NOTimeout {
|
||||
testFlags = append(testFlags, "-timeout", "0")
|
||||
} else if os.Getenv("TRAVIS") == "true" {
|
||||
// Make test timeout shorter than Travis' own timeout so that Go can report which test hangs.
|
||||
testFlags = append(testFlags, "-timeout", "9m")
|
||||
}
|
||||
if runtime.GOOS == "darwin" {
|
||||
testFlags = append(testFlags, "-exec="+wd+"/_scripts/testsign")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user