nim-codex/tests/codex
markspanbroek 69971c3e98
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-26 11:57:22 +02:00
..
blockexchange Release v0.1.4 (#912) 2024-09-24 13:19:58 +03:00
helpers feat: partial rewards and withdraws (#880) 2024-10-21 13:24:47 +03:00
merkletree Build slots (#668) 2024-01-11 08:45:23 -08:00
node Release v0.1.4 (#912) 2024-09-24 13:19:58 +03:00
sales fix(slot-reservations): Avoid slot filled cancellations (#963) 2024-11-04 07:31:01 +02:00
slots Release v0.1.4 (#912) 2024-09-24 13:19:58 +03:00
stores Release v0.1.4 (#912) 2024-09-24 13:19:58 +03:00
utils Rework AsyncIter (#811) 2024-06-10 22:47:29 +00:00
examples.nim feat(api): availabilities patch endpoint (#692) 2024-03-21 10:53:45 +00:00
helpers.nim Wire up prover (#736) 2024-03-12 12:10:14 +00:00
testasyncheapqueue.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
testasyncstreamwrapper.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
testblockexchange.nim Blocks leak and inflight for pending blocks (#315) 2022-11-15 00:12:05 -06:00
testchunking.nim Handles LPStreamError in chunker (#947) 2024-10-21 13:24:38 +03:00
testclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testerasure.nim Release v0.1.4 (#912) 2024-09-24 13:19:58 +03:00
testindexingstrategy.nim Merge latest master into release (#842) 2024-06-26 05:38:04 +03:00
testlogutils.nim refactor: use serde for json de/serialization instead of utils/json (#704) 2024-03-19 03:25:13 +00:00
testmanifest.nim feat: add metadata to the manifest (#960) 2024-11-04 07:31:24 +02:00
testmerkletree.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
testnode.nim Contracts handler (#672) 2024-01-15 08:45:04 -08:00
testpurchasing.nim feat: partial rewards and withdraws (#880) 2024-10-21 13:24:47 +03:00
testsales.nim Fix sales agent (#733) 2024-03-12 06:41:03 +00:00
testslots.nim Release v0.1.4 (#912) 2024-09-24 13:19:58 +03:00
teststores.nim Rework AsyncIter (#811) 2024-06-10 22:47:29 +00:00
teststorestream.nim Merge latest master into release (#842) 2024-06-26 05:38:04 +03:00
testsystemclock.nim Revert "remove call to `waitFor` from clock.now and make it async (#691)" (#707) 2024-02-16 22:12:16 +00:00
testutils.nim Rework AsyncIter (#811) 2024-06-10 22:47:29 +00:00
testvalidation.nim Fix concurrency issues (#993) 2024-11-26 11:57:22 +02:00