From d3e57808e80bd578fab3783afd94b7210ce16942 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 10 Jun 2025 12:03:23 +0200 Subject: [PATCH] Use eventuallySafe instead of eventually --- tests/integration/testpurchasing.nim | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/integration/testpurchasing.nim b/tests/integration/testpurchasing.nim index 227df02e..f4c5b454 100644 --- a/tests/integration/testpurchasing.nim +++ b/tests/integration/testpurchasing.nim @@ -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