From f87c2746d7309cab3cdecf58a254737953187a0a Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Wed, 30 Oct 2019 14:15:07 +0100 Subject: [PATCH] Increase arm64 timeout for clique test --- miner/worker_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/miner/worker_test.go b/miner/worker_test.go index 40822ee2b4..adaf25bf6a 100644 --- a/miner/worker_test.go +++ b/miner/worker_test.go @@ -19,6 +19,7 @@ package miner import ( "math/big" "math/rand" + "runtime" "testing" "time" @@ -340,7 +341,13 @@ func testEmptyWork(t *testing.T, chainConfig *params.ChainConfig, engine consens } } w.fullTaskHook = func() { - time.Sleep(1000 * time.Millisecond) + // Aarch64 unit tests are running in a VM on travis, they must + // be given more time to execute. + if runtime.GOARCH == "arm64" { + time.Sleep(1000 * time.Millisecond) + } else { + time.Sleep(100 * time.Millisecond) + } } // Ensure worker has finished initialization