mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-08-25 00:01:09 +00:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user