mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Increase timeout for ARM64/AARCH64
This commit is contained in:
parent
85115d0319
commit
dcb2d54a6d
1 changed files with 6 additions and 1 deletions
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue