Increase arm64 timeout for clique test

This commit is contained in:
Guillaume Ballet 2019-10-30 14:15:07 +01:00
parent 9d3efde2a8
commit f87c2746d7

View file

@ -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