nim-codex/tests/integration
markspanbroek 29433bad9a
Fix concurrency issues (#993)
* Use http subscriptions instead of websocket for tests

To work around this issue when subscriptions are
inactive for more than 5 minutes:
https://github.com/NomicFoundation/hardhat/issues/2053

Use 100 millisecond polling; default polling interval
of 4 seconds is too close to the 5 second timeout for
`check eventually`.

* use .confirm(1) instead of confirm(0)

confirm(0) doesn't wait at all, confirm(1) waits
for the transaction to be mined

* speed up partial payout integration test

* update nim-ethers to version 0.10.0

includes fixes for http polling and .confirm()

* fix timing of marketplace tests

allow for a bit more time to withdraw funds

* use .confirm(1) in marketplace tests

to ensure that the transaction has been processed
before continuing with the test

* fix timing issue in validation unit test

* fix proof integration test

there were two logic errors in this test:
- a slot is freed anyway at the end of the contract
- when starting the request takes a long time, the
  first slot can already be freed because there were
  too many missing proofs

* fix intermittent error in contract tests

currentTime() doesn't always correctly reflect
the time of the next transaction

* reduce number of slots in integration test

otherwise the windows runner in the CI won't
be able to start the request before it expires

* fix timing in purchasing test

allow for a bit more time for a request to
be submitted

* fix timing of request submission in test

windows ci is so slow, it can take up to 40 seconds
just to submit a storage request to hardhat

* increase proof period to 90 seconds

* adjust timing of integration tests

reason: with the increased period length of 90 seconds, it
can take longer to wait for a stable challenge at the
beginning of a period.

* increase CI timeout to 2 hours

* Fix slow builds on windows

apparently it takes windows 2-3 seconds to
resolve "localhost" to 127.0.0.1 for every
json-rpc connection that we make 🤦
2024-11-25 11:23:04 +00:00
..
clioption.nim Prover CLI updates (#735) 2024-03-12 09:57:13 +00:00
codexclient.nim feat: add metadata to the manifest (#960) 2024-10-25 13:43:19 +00:00
codexconfig.nim Prover CLI updates (#735) 2024-03-12 09:57:13 +00:00
codexprocess.nim Chronos v4 Update (v3 Compat Mode) (#814) 2024-07-18 21:04:33 +00:00
hardhatconfig.nim Prover CLI updates (#735) 2024-03-12 09:57:13 +00:00
hardhatprocess.nim fix(slot-reservations): Avoid slot filled cancellations (#963) 2024-10-24 05:56:12 +00:00
marketplacesuite.nim chore: update dependencies, especially nim-ethers to chronos v4 compatible version (#968) 2024-10-30 10:40:17 +00:00
multinodes.nim Fix concurrency issues (#993) 2024-11-25 11:23:04 +00:00
nodeconfig.nim refactor: multinode integration test refactor (#662) 2024-02-19 04:55:39 +00:00
nodeconfigs.nim Prover CLI updates (#735) 2024-03-12 09:57:13 +00:00
nodeprocess.nim fix(slot-reservations): Avoid slot filled cancellations (#963) 2024-10-24 05:56:12 +00:00
nodes.nim Wire up prover (#736) 2024-03-12 12:10:14 +00:00
testblockexpiration.nim Download API upgrade (#955) 2024-10-17 16:54:28 +00:00
testcli.nim Rework circuit downloader (#882) 2024-09-23 14:37:17 +00:00
testecbug.nim Fix concurrency issues (#993) 2024-11-25 11:23:04 +00:00
testmarketplace.nim Fix concurrency issues (#993) 2024-11-25 11:23:04 +00:00
testproofs.nim Fix concurrency issues (#993) 2024-11-25 11:23:04 +00:00
testpurchasing.nim Fix concurrency issues (#993) 2024-11-25 11:23:04 +00:00
testrestapi.nim feat: add metadata to the manifest (#960) 2024-10-25 13:43:19 +00:00
testsales.nim Fix concurrency issues (#993) 2024-11-25 11:23:04 +00:00
testupdownload.nim feat: add metadata to the manifest (#960) 2024-10-25 13:43:19 +00:00
twonodes.nim Fix concurrency issues (#993) 2024-11-25 11:23:04 +00:00