diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-10 00:12:50 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 10:37:29 +0800 |
commit | 4365350430f70de6488cb4927d315e0d72297a0a (patch) | |
tree | 9b303f79212ad65209b9ae0f8b7d60fbb81a8fa2 /packages | |
parent | 3b158cb72649c19a6b569821d23672ea7454b45b (diff) | |
download | dexon-sol-tools-4365350430f70de6488cb4927d315e0d72297a0a.tar.gz dexon-sol-tools-4365350430f70de6488cb4927d315e0d72297a0a.tar.zst dexon-sol-tools-4365350430f70de6488cb4927d315e0d72297a0a.zip |
Don't do parallel calls
Diffstat (limited to 'packages')
-rw-r--r-- | packages/contracts/test/token_registry.ts | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/packages/contracts/test/token_registry.ts b/packages/contracts/test/token_registry.ts index 9dcc77b82..b3a420d31 100644 --- a/packages/contracts/test/token_registry.ts +++ b/packages/contracts/test/token_registry.ts @@ -142,10 +142,8 @@ describe('TokenRegistry', () => { await tokenReg.setTokenName.sendTransactionAsync(token1.address, token2.name, { from: owner, }); - const [newData, oldData] = await Promise.all([ - tokenRegWrapper.getTokenByNameAsync(token2.name), - tokenRegWrapper.getTokenByNameAsync(token1.name), - ]); + const newData = await tokenRegWrapper.getTokenByNameAsync(token2.name); + const oldData = await tokenRegWrapper.getTokenByNameAsync(token1.name); const expectedNewData = _.assign({}, token1, { name: token2.name }); const expectedOldData = nullToken; @@ -179,10 +177,8 @@ describe('TokenRegistry', () => { it('should change the token symbol when called by owner', async () => { await tokenReg.setTokenSymbol.sendTransactionAsync(token1.address, token2.symbol, { from: owner }); - const [newData, oldData] = await Promise.all([ - tokenRegWrapper.getTokenBySymbolAsync(token2.symbol), - tokenRegWrapper.getTokenBySymbolAsync(token1.symbol), - ]); + const newData = await tokenRegWrapper.getTokenByNameAsync(token2.name); + const oldData = await tokenRegWrapper.getTokenByNameAsync(token1.name); const expectedNewData = _.assign({}, token1, { symbol: token2.symbol }); const expectedOldData = nullToken; |