Skip to content

Commit

Permalink
test: Fix TicketBroker tests flakiness!
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Aug 18, 2023
1 parent ead1edb commit 391e444
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/unit/TicketBroker.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,11 @@ describe("TicketBroker", () => {
expect(endSenderInfo.sender.deposit).to.be.equal(deposit)
expect(endSenderInfo.reserve.fundsRemaining).to.be.equal(reserve)

expect(tx).to.changeEtherBalance(funder, -(deposit + reserve))
expect(tx).to.changeEtherBalance(fixture.minter, deposit + reserve)
await expect(tx).to.changeEtherBalance(funder, -(deposit + reserve))
await expect(tx).to.changeEtherBalance(
fixture.minter,
deposit + reserve
)
})
})

Expand Down

0 comments on commit 391e444

Please sign in to comment.