Fix flaky test
This commit is contained in:
parent
bb14732ddc
commit
f4d895113f
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue