Fix race condition for two integration test jobs
This commit is contained in:
parent
b27df612da
commit
d9fd6d619a
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue