Fix race condition for two integration test jobs

This commit is contained in:
junderw 2019-04-08 16:40:38 +09:00
parent b27df612da
commit d9fd6d619a
No known key found for this signature in database
GPG key ID: B256185D3A971908

View file

@ -63,6 +63,8 @@ async function faucet (address, value) {
if (err.message === 'Bad Request' && currentHeight < 432) {
await mine(432 - currentHeight)
return _faucetRequest(address, value)
} else if (err.message === 'Bad Request' && currentHeight >= 432) {
return _faucetRequest(address, value)
} else {
throw err
}