[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.
This commit is contained in:
Mark Spanbroek 2022-07-07 16:50:24 +02:00 committed by markspanbroek
parent 97a5237d44
commit 6df0c9ab40
1 changed files with 1 additions and 5 deletions

View File

@ -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 json = %*{"duration": "0x100", "maxPrice": "0x400", "expiry": expiry}
client.post(baseurl1 & "/storage/request/" & cid, $json).body