mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-03-03 14:00:40 +00:00
integration: disable automatic advancing of time
reason: makes reasoning about timing in tests harder, because the period is set to 60 seconds in the marketplace configuration, but this code switches to a new period every 15 seconds
This commit is contained in:
parent
aff67ed5e9
commit
f37f1c196a
@ -154,8 +154,6 @@ template marketplacesuite*(name: string, body: untyped) =
|
||||
period = config.proofs.period.truncate(uint64)
|
||||
periodicity = Periodicity(seconds: period.u256)
|
||||
|
||||
continuousMineFut = continuouslyAdvanceEvery(chronos.millis(15000))
|
||||
|
||||
teardown:
|
||||
if not continuousMineFut.isNil and not continuousMineFut.finished:
|
||||
await continuousMineFut.cancelAndWait()
|
||||
|
Loading…
x
Reference in New Issue
Block a user