nim-codex/tests/codex/sales
markspanbroek e654e93c71
Fix sales agent (#733)
* clock: add 1 second leeway before acting on timeouts

* sales: do not raise in proving loop when slot is cancelled

Allow the onCancelled callback to handle cancellation, and
the onFailed callback to handle failed requests.

* sales: cleanup proving tests

* sales: fix sales agent tests

* sales: stop cancellation loop when request started, finished or failed

* sales: fix flaky test

* sales: fix another flaky test

* clock: add comment explaining the + 1 second

Co-Authored-By: benbierens <thatbenbierens@gmail.com>

---------

Co-authored-by: benbierens <thatbenbierens@gmail.com>
2024-03-12 06:41:03 +00:00
..
states Fix sales agent (#733) 2024-03-12 06:41:03 +00:00
testreservations.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
testsales.nim Revert "remove call to `waitFor` from clock.now and make it async (#691)" (#707) 2024-02-16 22:12:16 +00:00
testsalesagent.nim Fix sales agent (#733) 2024-03-12 06:41:03 +00:00
testslotqueue.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
teststates.nim refactor: merging proving module into sales (#469) 2023-08-21 12:26:43 +02:00