Browse Source
Fix race condition for two integration test jobs
fixTypes
junderw
6 years ago
No known key found for this signature in database
GPG Key ID: B256185D3A971908
1 changed files with
2 additions and
0 deletions
-
test/integration/_regtest.js
|
|
@ -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 |
|
|
|
} |
|
|
|