Fix flaky test

This commit is contained in:
Mark Spanbroek 2022-03-09 11:29:53 +01:00 committed by markspanbroek
parent bb14732ddc
commit f4d895113f
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}