mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-12 10:46:57 +00:00
[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:
parent
97a5237d44
commit
6df0c9ab40
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user