aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/unlimited_allowance_token.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-23 02:48:41 +0800
committerGitHub <noreply@github.com>2018-05-23 02:48:41 +0800
commitcde85243d6eaf9376f499aa1cc28bd393130c2b9 (patch)
tree168bde1ea63c4c5c3c4741ca486a2f43c58fab4e /packages/contracts/test/unlimited_allowance_token.ts
parentc579db1a7bec0b5fdec8d120121375224de46d5d (diff)
parente26c0c58aeb435e4fbec1b111b77d51b67dacdbe (diff)
downloaddexon-sol-tools-cde85243d6eaf9376f499aa1cc28bd393130c2b9.tar.gz
dexon-sol-tools-cde85243d6eaf9376f499aa1cc28bd393130c2b9.tar.zst
dexon-sol-tools-cde85243d6eaf9376f499aa1cc28bd393130c2b9.zip
Merge pull request #601 from 0xProject/contracts-test-fixes
Contracts test fixes
Diffstat (limited to 'packages/contracts/test/unlimited_allowance_token.ts')
-rw-r--r--packages/contracts/test/unlimited_allowance_token.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/contracts/test/unlimited_allowance_token.ts b/packages/contracts/test/unlimited_allowance_token.ts
index 5ad9321e8..27b94ead6 100644
--- a/packages/contracts/test/unlimited_allowance_token.ts
+++ b/packages/contracts/test/unlimited_allowance_token.ts
@@ -28,6 +28,12 @@ describe('UnlimitedAllowanceToken', () => {
let token: DummyERC20TokenContract;
before(async () => {
+ await blockchainLifecycle.startAsync();
+ });
+ after(async () => {
+ await blockchainLifecycle.revertAsync();
+ });
+ before(async () => {
const accounts = await web3Wrapper.getAvailableAddressesAsync();
owner = accounts[0];
spender = accounts[1];
@@ -40,7 +46,10 @@ describe('UnlimitedAllowanceToken', () => {
constants.DUMMY_TOKEN_DECIMALS,
constants.DUMMY_TOKEN_TOTAL_SUPPLY,
);
- await token.mint.sendTransactionAsync(MAX_MINT_VALUE, { from: owner });
+ await web3Wrapper.awaitTransactionMinedAsync(
+ await token.mint.sendTransactionAsync(MAX_MINT_VALUE, { from: owner }),
+ constants.AWAIT_TRANSACTION_MINED_MS,
+ );
tokenAddress = token.address;
});
beforeEach(async () => {