Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Fix intermittent timing issue with test
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGuilding committed Mar 3, 2023
1 parent 84e9857 commit 0f15fad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ describe("Provider tests", function () {
.transfer(recipient, amountToTransfer);
await tx.wait();

// wait 1 second to ensure listener count updates
await new Promise((resolve) => setTimeout(resolve, 1000));

// Assert
expect((await erc20.balanceOf(recipient)).sub(balanceBefore)).to.equal(
amountToTransfer,
Expand Down

0 comments on commit 0f15fad

Please sign in to comment.