Commit cabf116
committed
fix(test): prevent flaky test_caching test with serial execution
The test_caching test uses a static cache shared across all tests. When
tests run in parallel, other tests can modify the cache between
clear_cache() and the cache_size() assertions, causing spurious failures.
Fix by adding #[serial] attribute from serial_test crate to ensure this
test runs in isolation from other tests that use the cache.1 parent 0e62a3a commit cabf116
File tree
3 files changed
+5
-1
lines changed- src/cortex-engine
- src/config
3 files changed
+5
-1
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| 348 | + | |
347 | 349 | | |
348 | | - | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
0 commit comments