From d9fd6d619a58378e0bb6536928068602d33d5450 Mon Sep 17 00:00:00 2001 From: junderw Date: Mon, 8 Apr 2019 16:40:38 +0900 Subject: [PATCH] Fix race condition for two integration test jobs --- test/integration/_regtest.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/_regtest.js b/test/integration/_regtest.js index d2a3c7d..0ea6736 100644 --- a/test/integration/_regtest.js +++ b/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 }