Increase timeout for ARM64/AARCH64

This commit is contained in:
Guillaume Ballet 2019-09-20 11:00:54 +02:00
parent 85115d0319
commit dcb2d54a6d

View file

@ -311,11 +311,16 @@ func doTest(cmdline []string) {
packages = flag.CommandLine.Args() packages = flag.CommandLine.Args()
} }
timeout := "5m"
if runtime.GOARCH == "arm64" && os.Getenv("CI") == "true" {
timeout = "10m"
}
// Run the actual tests. // Run the actual tests.
// Test a single package at a time. CI builders are slow // Test a single package at a time. CI builders are slow
// and some tests run into timeouts under load. // and some tests run into timeouts under load.
gotest := goTool("test", buildFlags(env)...) gotest := goTool("test", buildFlags(env)...)
gotest.Args = append(gotest.Args, "-p", "1", "-timeout", "5m") gotest.Args = append(gotest.Args, "-p", "1", "-timeout", timeout)
if *coverage { if *coverage {
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover") gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
} }