mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
aaf5abbf1c
3085: refactorize the whole test suite r=irevoire a=irevoire 1. Make a call to assert_internally_consistent automatically when snapshotting the scheduler. There is no point in snapshotting something broken and expecting the dumb humans to notice. 2. Replace every possible call to assert_internally_consistent with a snapshot of the scheduler. It uses the same amount of lines and ensures we never change something without noticing in any tests ever. 3. Name every snapshot: it's easier to debug when something goes wrong and easier to review in general. 4. Stop skipping breakpoints; it's too easy to miss something. Now you must explicitly show which path the scheduler is supposed to use. 5. Add a timeout on the channel.recv, it eases the process of writing tests; now, when something files, you get a failure instead of a deadlock. Co-authored-by: Irevoire <tamo@meilisearch.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |