Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va committed May 24, 2021
1 parent 2ea745b commit 8dd7a7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/tests/ts-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"license": "MIT",
"mocha": {
"timeout": 240000,
"timeout": 300000,
"exit": true,
"color": false,
"slow": 0,
Expand Down
8 changes: 4 additions & 4 deletions core/tests/ts-tests/tests/mint-nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Tester.prototype.testMintNFT = async function (

expect(balanceBefore.sub(balanceAfter).eq(fee), 'Wrong amount in wallet after withdraw').to.be.true;
const state = await receiver.getAccountState();
const nft: any = Object.values(state.committed.nfts)[0];
expect(nft !== undefined);
const nft = Object.values(state.committed.nfts)[0];
expect(nft).to.exist;
expect(nft.contentHash).eq(utils.hexlify(contentHash));

return nft;
Expand All @@ -70,9 +70,9 @@ Tester.prototype.testGetNFT = async function (wallet: Wallet, feeToken: TokenLik
await handle.awaitReceipt();
this.runningFee = this.runningFee.add(fee);
const state = await wallet.getAccountState();
const nft: any = Object.values(state.committed.nfts)[0];
const nft = Object.values(state.committed.nfts)[0];
const nft1 = await wallet.provider.getNFT(nft.id);
expect(nft1).eq(null, ' NFT does not exist yet');
expect(nft1).eq(null, 'NFT does not exist yet');
await handle.awaitVerifyReceipt();
const nft2 = await wallet.provider.getNFT(nft.id);
expect(nft2.id).eq(nft.id);
Expand Down

0 comments on commit 8dd7a7f

Please sign in to comment.