nim-codex/tests
Eric 3e80de3454
Cancel and wait for asyncstatemachine futures when stopping (#493)
* Simplify `.then` (promise api) and tests

* Remove tracked future when cancelled. Add tracked future tests

* Track and cancel statemachine futures

The futures created in each asyncstatemachine instance are tracked, and each future is cancelled and waited in `stop`.

Change `asyncstatemachine.stop` to be async so `machine.trackedFutures.cancelAndWait` could be called.
Add a constructor for `asyncstatemachine` that initialises the `trackedFutures` instance, and call the constructor from derived class constructors.
2023-07-31 15:09:34 +10:00
..
codex Cancel and wait for asyncstatemachine futures when stopping (#493) 2023-07-31 15:09:34 +10:00
contracts Slot queue (#455) 2023-07-25 12:50:30 +10:00
fixtures Node setup (#32) 2022-01-10 09:32:56 -06:00
helpers Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
integration Slot queue (#455) 2023-07-25 12:50:30 +10:00
checktest.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
config.nims [build] fix: ignore logging when running singular tests (#369) 2023-03-16 15:32:09 +01:00
ethertest.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
examples.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
helpers.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
logging.nim [build] fix: ignore logging when running singular tests (#369) 2023-03-16 15:32:09 +01:00
testCodex.nim Tests for AsyncStreamWrapper (#463) 2023-06-30 14:18:58 +02:00
testContracts.nim Validator (#387) 2023-04-19 15:06:00 +02:00
testIntegration.nim Generate proofs when required (#383) 2023-03-27 15:47:25 +02:00