From 9140afc573fe893736914f839899159b70b22a7b Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Fri, 25 May 2018 18:54:35 -0300 Subject: [PATCH] fix race condition --- utils/testUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/testUtils.js b/utils/testUtils.js index a21c6aa..fc6fc30 100644 --- a/utils/testUtils.js +++ b/utils/testUtils.js @@ -214,12 +214,12 @@ exports.increaseTime = async (amount) => { params: [+amount], id: new Date().getSeconds() }, - (error) => { + async (error) => { if (error) { console.log(error); return reject(err); } - web3.currentProvider.sendAsync( + await web3.currentProvider.sendAsync( { jsonrpc: '2.0', method: 'evm_mine',