[clock] waitUntil() completes immediately when block arrives (#475)

Previously it could take up to one second to complete
the future. This messed with the timings in the
integration tests and made them less predictable.
This commit is contained in:
markspanbroek
2023-07-13 11:19:45 +02:00
committed by GitHub
parent 6dd7e55719
commit 3879ec8e3a
4 changed files with 25 additions and 7 deletions
+3 -3
View File
@@ -94,7 +94,7 @@ twonodessuite "Proving integration test", debug1=false, debug2=false:
break
else:
await advanceToNextPeriod()
await sleepAsync(1.seconds)
await sleepAsync(100.milliseconds)
check slotWasFreed
@@ -186,7 +186,7 @@ multinodesuite "Simulate invalid proofs",
break
else:
await advanceToNextPeriod()
await sleepAsync(1.seconds)
await sleepAsync(100.milliseconds)
check slotWasFreed
@@ -210,7 +210,7 @@ multinodesuite "Simulate invalid proofs",
break
else:
await advanceToNextPeriod()
await sleepAsync(1.seconds)
await sleepAsync(100.milliseconds)
check not slotWasFreed