From e4ff7b6c788bb4ae61a0d632240349d9bcc578d0 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 11 Feb 2025 14:14:25 +0100 Subject: [PATCH] marketplace: fix more flaky tests --- test/Marketplace.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Marketplace.test.js b/test/Marketplace.test.js index ba15504..073dcd4 100644 --- a/test/Marketplace.test.js +++ b/test/Marketplace.test.js @@ -696,7 +696,7 @@ describe("Marketplace", function () { ).toNumber() await marketplace.reserveSlot(slot.request, slot.index) - await advanceTimeTo(filledAt) + await setNextBlockTimestamp(filledAt) await marketplace.fillSlot(slot.request, slot.index, proof) await waitUntilCancelled(marketplace, request) await marketplace.freeSlot(slotId(slot)) @@ -717,7 +717,7 @@ describe("Marketplace", function () { ).toNumber() await marketplace.reserveSlot(slot.request, slot.index) - await advanceTimeTo(filledAt) + await setNextBlockTimestamp(filledAt) await marketplace.fillSlot(slot.request, slot.index, proof) await waitUntilCancelled(marketplace, request) const startBalanceHost = await token.balanceOf(host.address) @@ -1009,7 +1009,7 @@ describe("Marketplace", function () { ).toNumber() await marketplace.reserveSlot(slot.request, slot.index) - await advanceTimeTo(filledAt) + await setNextBlockTimestamp(filledAt) await marketplace.fillSlot(slot.request, slot.index, proof) await waitUntilCancelled(marketplace, request) const expectedPartialhostRewardRecipient =