From 391e444df603813d84164825eabe00b83d42a9a0 Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Fri, 18 Aug 2023 14:08:49 -0300 Subject: [PATCH] test: Fix TicketBroker tests flakiness! --- test/unit/TicketBroker.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/unit/TicketBroker.js b/test/unit/TicketBroker.js index ea1f1130..24192b19 100644 --- a/test/unit/TicketBroker.js +++ b/test/unit/TicketBroker.js @@ -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 + ) }) })