Don't do parallel calls
This commit is contained in:
@@ -142,10 +142,8 @@ describe('TokenRegistry', () => {
|
|||||||
await tokenReg.setTokenName.sendTransactionAsync(token1.address, token2.name, {
|
await tokenReg.setTokenName.sendTransactionAsync(token1.address, token2.name, {
|
||||||
from: owner,
|
from: owner,
|
||||||
});
|
});
|
||||||
const [newData, oldData] = await Promise.all([
|
const newData = await tokenRegWrapper.getTokenByNameAsync(token2.name);
|
||||||
tokenRegWrapper.getTokenByNameAsync(token2.name),
|
const oldData = await tokenRegWrapper.getTokenByNameAsync(token1.name);
|
||||||
tokenRegWrapper.getTokenByNameAsync(token1.name),
|
|
||||||
]);
|
|
||||||
|
|
||||||
const expectedNewData = _.assign({}, token1, { name: token2.name });
|
const expectedNewData = _.assign({}, token1, { name: token2.name });
|
||||||
const expectedOldData = nullToken;
|
const expectedOldData = nullToken;
|
||||||
@@ -179,10 +177,8 @@ describe('TokenRegistry', () => {
|
|||||||
|
|
||||||
it('should change the token symbol when called by owner', async () => {
|
it('should change the token symbol when called by owner', async () => {
|
||||||
await tokenReg.setTokenSymbol.sendTransactionAsync(token1.address, token2.symbol, { from: owner });
|
await tokenReg.setTokenSymbol.sendTransactionAsync(token1.address, token2.symbol, { from: owner });
|
||||||
const [newData, oldData] = await Promise.all([
|
const newData = await tokenRegWrapper.getTokenByNameAsync(token2.name);
|
||||||
tokenRegWrapper.getTokenBySymbolAsync(token2.symbol),
|
const oldData = await tokenRegWrapper.getTokenByNameAsync(token1.name);
|
||||||
tokenRegWrapper.getTokenBySymbolAsync(token1.symbol),
|
|
||||||
]);
|
|
||||||
|
|
||||||
const expectedNewData = _.assign({}, token1, { symbol: token2.symbol });
|
const expectedNewData = _.assign({}, token1, { symbol: token2.symbol });
|
||||||
const expectedOldData = nullToken;
|
const expectedOldData = nullToken;
|
||||||
|
|||||||
Reference in New Issue
Block a user