mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-13 19:03:10 +00:00
Fix duration
This commit is contained in:
parent
719a315b2c
commit
ea59d2a2c8
@ -382,14 +382,14 @@ marketplacesuite "Marketplace payouts":
|
||||
# We wait that the 3 slots are filled by the first SP
|
||||
check eventually(
|
||||
await client0.client.purchaseStateIs(purchaseId, "started"),
|
||||
timeout = duration * 1000,
|
||||
timeout = 10 * 60.int * 1000,
|
||||
)
|
||||
|
||||
# Here we will check that for each provider, the total remaining collateral
|
||||
# will match the available slots.
|
||||
# So if a SP hosts 1 slot, it should have enough total remaining collateral
|
||||
# to host 2 more slots.
|
||||
for i, provider in providers():
|
||||
for provider in providers():
|
||||
let availabilities = (await provider.client.getAvailabilities()).get
|
||||
let availability = availabilities[0]
|
||||
let slots = (await provider.client.getSlots()).get
|
||||
@ -397,5 +397,5 @@ marketplacesuite "Marketplace payouts":
|
||||
check eventually(
|
||||
availability.totalRemainingCollateral ==
|
||||
availableSlots * slotSize * minPricePerBytePerSecond,
|
||||
timeout = duration * 1000,
|
||||
timeout = 10 * 60.int * 1000,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user