From bc3ae62310eba3940a0d1aa46e2957e0c65d7b79 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 22 May 2025 17:45:49 +0200 Subject: [PATCH] Increase the timeout to match the request expiry --- tests/integration/testmarketplace.nim | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/tests/integration/testmarketplace.nim b/tests/integration/testmarketplace.nim index 07851a1e..d8466240 100644 --- a/tests/integration/testmarketplace.nim +++ b/tests/integration/testmarketplace.nim @@ -226,14 +226,14 @@ marketplacesuite "Marketplace payouts": # Uncomment to start Hardhat automatically, typically so logs can be inspected locally hardhat: HardhatConfig.none, clients: CodexConfigs.init(nodes = 1) - # .debug() # uncomment to enable console log output.debug() - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("node", "erasure") + # .debug() # uncomment to enable console log output.debug() + # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + # .withLogTopics("node", "erasure") .some, providers: CodexConfigs.init(nodes = 1) - # .debug() # uncomment to enable console log output - # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log - # .withLogTopics("node", "marketplace", "sales", "reservations", "node", "proving", "clock") + # .debug() # uncomment to enable console log output + # .withLogFile() # uncomment to output log file to tests/integration/logs/ //_.log + # .withLogTopics("node", "marketplace", "sales", "reservations", "node", "statemachine") .some, ): let duration = 20.periods @@ -284,7 +284,10 @@ marketplacesuite "Marketplace payouts": # wait until sale is cancelled await ethProvider.advanceTime(expiry.u256) - check eventually await providerApi.saleStateIs(slotId, "SaleCancelled") + check eventually( + await providerApi.saleStateIs(slotId, "SaleCancelled"), + timeout = expiry.int * 1000, + ) await advanceToNextPeriod()