mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-02-07 22:23:41 +00:00
Fix flaky test
This commit is contained in:
parent
bb14732ddc
commit
f4d895113f
@ -105,6 +105,7 @@ describe("Proofs", function () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
async function waitUntilProofIsRequired(id) {
|
async function waitUntilProofIsRequired(id) {
|
||||||
|
await advanceTimeTo(periodEnd(periodOf(await currentTime())))
|
||||||
while (!(await proofs.isProofRequired(id))) {
|
while (!(await proofs.isProofRequired(id))) {
|
||||||
await advanceTime(period)
|
await advanceTime(period)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user