From f4d895113f242e87dadc57f9b52555b28f6f06b2 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 9 Mar 2022 11:29:53 +0100 Subject: [PATCH] Fix flaky test --- test/Proofs.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Proofs.test.js b/test/Proofs.test.js index 469103c..c75b2e9 100644 --- a/test/Proofs.test.js +++ b/test/Proofs.test.js @@ -105,6 +105,7 @@ describe("Proofs", function () { }) async function waitUntilProofIsRequired(id) { + await advanceTimeTo(periodEnd(periodOf(await currentTime()))) while (!(await proofs.isProofRequired(id))) { await advanceTime(period) }