Use eventuallySafe instead of eventually

This commit is contained in:
Arnaud 2025-06-10 12:03:23 +02:00
parent 33cb0c484c
commit d3e57808e8
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE

View File

@ -94,18 +94,15 @@ twonodessuite "Purchasing":
tolerance = 1.uint,
)
).get
check eventually(
await client1.purchaseStateIs(id, "submitted"),
timeout = 3 * 60 * 1000,
pollInterval = 100,
check eventuallySafe(
await client1.purchaseStateIs(id, "submitted"), timeout = 3 * 60 * 1000
)
await node1.restart()
check eventually(
await client1.purchaseStateIs(id, "submitted"),
timeout = 3 * 60 * 1000,
pollInterval = 100,
check eventuallySafe(
await client1.purchaseStateIs(id, "submitted"), timeout = 3 * 60 * 1000
)
let request = (await client1.getPurchase(id)).get.request.get
check request.ask.duration == (10 * 60).uint64