mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-22 07:13:09 +00:00
fix(integration): add timeouts to waiting for started futures
This commit is contained in:
parent
d1b329be89
commit
1fa960eb9e
@ -290,7 +290,7 @@ marketplacesuite(name = "Marketplace payouts", stopOnRequestFail = true):
|
||||
# wait until sale is cancelled
|
||||
await ethProvider.advanceTime(expiry.u256)
|
||||
|
||||
await requestCancelledEvent.wait().wait(timeout = chronos.seconds(5))
|
||||
await requestCancelledEvent.wait().wait(timeout = chronos.seconds(expiry.int + 10))
|
||||
|
||||
await advanceToNextPeriod()
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ marketplacesuite(name = "Hosts submit regular proofs", stopOnRequestFail = false
|
||||
|
||||
let slotSize = slotSize(blocks, ecNodes, ecTolerance)
|
||||
|
||||
discard await waitForRequestToStart(expiry.int)
|
||||
discard await waitForRequestToStart(expiry.int + 10)
|
||||
|
||||
var proofWasSubmitted = false
|
||||
proc onProofSubmitted(event: ?!ProofSubmitted) =
|
||||
|
||||
@ -140,7 +140,7 @@ marketplacesuite(name = "Sales", stopOnRequestFail = true):
|
||||
tolerance = 1,
|
||||
)
|
||||
|
||||
discard await waitForRequestToStart()
|
||||
discard await waitForRequestToStart((10 * 60) + 10)
|
||||
|
||||
let updatedAvailability =
|
||||
((await host.getAvailabilities()).get).findItem(availability).get
|
||||
@ -215,7 +215,7 @@ marketplacesuite(name = "Sales", stopOnRequestFail = true):
|
||||
)
|
||||
).get
|
||||
|
||||
discard await waitForRequestToStart()
|
||||
discard await waitForRequestToStart((10*60)+10)
|
||||
|
||||
let purchase = (await client.getPurchase(id)).get
|
||||
check purchase.error == none string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user