From 6df0c9ab407fa071a046bd3a51cb21c58fcd2707 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Thu, 7 Jul 2022 16:50:24 +0200 Subject: [PATCH] [integration] set expiry always to high value Reasoning: a purchase is now completed when the first proof comes in, so the test will no longer wait until the request has expired. --- tests/testIntegration.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/testIntegration.nim b/tests/testIntegration.nim index b6539e27..e72e846b 100644 --- a/tests/testIntegration.nim +++ b/tests/testIntegration.nim @@ -88,11 +88,7 @@ ethersuite "Integration tests": client.post(baseurl1 & "/upload", "some file contents").body proc buy(cid: string): string = - when defined(windows): - # Windows builds in GitHub Actions need a longer expiry - let expiry = ((waitFor provider.currentTime()) + 30).toHex - else: - let expiry = ((waitFor provider.currentTime()) + 10).toHex + let expiry = ((waitFor provider.currentTime()) + 30).toHex let json = %*{"duration": "0x100", "maxPrice": "0x400", "expiry": expiry} client.post(baseurl1 & "/storage/request/" & cid, $json).body