diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2017-12-12 14:47:47 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2017-12-13 07:05:30 +0800 |
commit | b97f140b78a0420943291af57d122bc90a488112 (patch) | |
tree | 29a3dfac4f8fecddba716171432270bbc53cfff4 /packages/contracts/test/ts/ether_token_v2.ts | |
parent | 1dda4d5f78705d96934a08f00000e9a98a3bbc3d (diff) | |
download | dexon-0x-contracts-b97f140b78a0420943291af57d122bc90a488112.tar dexon-0x-contracts-b97f140b78a0420943291af57d122bc90a488112.tar.gz dexon-0x-contracts-b97f140b78a0420943291af57d122bc90a488112.tar.bz2 dexon-0x-contracts-b97f140b78a0420943291af57d122bc90a488112.tar.lz dexon-0x-contracts-b97f140b78a0420943291af57d122bc90a488112.tar.xz dexon-0x-contracts-b97f140b78a0420943291af57d122bc90a488112.tar.zst dexon-0x-contracts-b97f140b78a0420943291af57d122bc90a488112.zip |
Add gas limits to failing tests
Diffstat (limited to 'packages/contracts/test/ts/ether_token_v2.ts')
-rw-r--r-- | packages/contracts/test/ts/ether_token_v2.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/contracts/test/ts/ether_token_v2.ts b/packages/contracts/test/ts/ether_token_v2.ts index 4931eb798..174403445 100644 --- a/packages/contracts/test/ts/ether_token_v2.ts +++ b/packages/contracts/test/ts/ether_token_v2.ts @@ -104,7 +104,8 @@ contract('EtherTokenV2', (accounts: string[]) => { const initEthBalance = await getEthBalanceAsync(account); const ethTokensToWithdraw = initEthTokenBalance; expect(ethTokensToWithdraw).to.not.be.bignumber.equal(0); - const txHash = await zeroEx.etherToken.withdrawAsync(ethTokensToWithdraw, account); + const txHash = await zeroEx.etherToken.withdrawAsync(ethTokensToWithdraw, account, + {gasLimit: constants.MAX_ETHERTOKEN_WITHDRAW_GAS}); const receipt = await zeroEx.awaitTransactionMinedAsync(txHash); const ethSpentOnGas = gasPrice.times(receipt.gasUsed); @@ -121,7 +122,8 @@ contract('EtherTokenV2', (accounts: string[]) => { const initEthBalance = await getEthBalanceAsync(account); const ethTokensToWithdraw = initEthTokenBalance; expect(ethTokensToWithdraw).to.not.be.bignumber.equal(0); - const txHash = await zeroEx.etherToken.withdrawAsync(ethTokensToWithdraw, account); + const txHash = await zeroEx.etherToken.withdrawAsync(ethTokensToWithdraw, account, + {gasLimit: constants.MAX_ETHERTOKEN_WITHDRAW_GAS}); const receipt = await zeroEx.awaitTransactionMinedAsync(txHash); const logs = receipt.logs; |