Commit 4783de3
committed
Add deterministic engine-scheduler tests
The fake plugin reports each makeCurrencyEngine call through an
onEngineCreate hook, so tests can observe creation order. Cases cover
concurrency-limited draining, waitForCurrencyWallet bumping a queued
wallet to the front, cold wallets bypassing the queue, a deleted queued
wallet giving up its place, and balanceMap identity across unchanged
balance reports.1 parent 0ad9cff commit 4783de3
3 files changed
Lines changed: 413 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments