miroir/crates/miroir-core/tests
jedarden 86e4403736 test(idempotency): fix flaky p5_10_a3_hot_query_coalesces_scatters test
The test had a race condition where spawned tasks could call try_coalesce()
before the registration was fully visible, causing them to miss the coalescing
window and fail the assertion.

Fix:
- Add tokio::task::yield_now() after registration to ensure it's visible
- Wait for all tasks to complete their try_coalesce calls before unregistering
- Increase broadcast channel capacity from 1000 to 2000 to handle concurrent load

This makes the test deterministic and reliable under full suite load.

Closes: bf-2u35q

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 22:23:25 -04:00
..
chaos.rs style: code formatting cleanup 2026-05-26 03:44:20 -04:00
cutover_race.rs fix(migration): implement drain timeout and fix concurrent migration tracking 2026-05-26 19:28:25 -04:00
dfs_skewed_corpus.rs fix(clippy): apply auto-fixes for unused imports and variables 2026-05-25 05:15:22 -04:00
hash_fixtures.rs fix: remove trailing whitespace and formatting cleanup 2026-05-25 09:04:47 -04:00
integration.rs fix(tests): integration tests skip gracefully when Docker unavailable 2026-05-26 14:42:28 -04:00
merger_proptest.rs fix(clippy): apply auto-fixes for unused imports and variables 2026-05-25 05:15:22 -04:00
p3_redis_integration.rs fix(tests): integration tests skip gracefully when Docker unavailable 2026-05-26 14:42:28 -04:00
p3_sqlite_restart.rs feat(admin-api): add TTL policy endpoint (plan §13.14) 2026-05-26 15:40:45 -04:00
p3_task_store_proptest.proptest-regressions P1.6: Verify property tests and benchmarks for router/merger 2026-05-23 13:03:54 -04:00
p3_task_store_proptest.rs fix(task_store): pass now_ms parameter to renew_leader_lease for correctness 2026-05-26 09:25:41 -04:00
p4_topology_chaos.rs fix(explainer): handle warnings at any position in list 2026-05-26 21:00:25 -04:00
p13_2_hedging_chaos.rs fix(clippy): auto-fix format strings and deprecated IndexMap::remove 2026-05-26 01:14:31 -04:00
p13_3_adaptive_replica_selection.rs fix: remove trailing whitespace and formatting cleanup 2026-05-25 09:04:47 -04:00
p13_4_query_planner.rs fix(clippy): apply auto-fixes for unused imports and variables 2026-05-25 05:15:22 -04:00
p13_5_drift_reconciler.rs test(miroir-core): add drift reconciler acceptance tests (P5.5.d §13.5) 2026-05-24 22:21:14 -04:00
p13_7_alias_acceptance_tests.rs fix(clippy): auto-fix format strings and deprecated IndexMap::remove 2026-05-26 01:14:31 -04:00
p13_8_anti_entropy.rs fix(clippy): apply auto-fixes for unused imports and variables 2026-05-25 05:15:22 -04:00
p13_10_idempotency_coalescing.rs test(idempotency): fix flaky p5_10_a3_hot_query_coalesces_scatters test 2026-05-26 22:23:25 -04:00
p13_18_canary_acceptance_tests.rs feat(explain): complete Explain API integrations (plan §13.20) 2026-05-26 17:55:36 -04:00
p22_write_path.rs fix(clippy): auto-fix format strings and deprecated IndexMap::remove 2026-05-26 01:14:31 -04:00
p22_write_path_acceptance.rs fix(clippy): auto-fix format strings and deprecated IndexMap::remove 2026-05-26 01:14:31 -04:00
p23_search_read_path.rs fix(clippy): apply auto-fixes for unused imports and variables 2026-05-25 05:15:22 -04:00
p25_task_reconciliation.rs fix(clippy): auto-fix format strings and deprecated IndexMap::remove 2026-05-26 01:14:31 -04:00
p28_api_compatibility.rs fix(tests): import IntoResponse inside cfg(feature) block 2026-05-25 20:29:47 -04:00
p42_node_addition.rs style: code formatting cleanup 2026-05-26 03:44:20 -04:00
p43_node_drain.rs fix(clippy): auto-fix format strings and deprecated IndexMap::remove 2026-05-26 01:14:31 -04:00
p44_replica_group_addition.rs style: code formatting cleanup 2026-05-26 03:44:20 -04:00
router_proptest.proptest-regressions P1.5: Implement scatter module with covering-set construction + dispatch trait 2026-04-19 00:20:29 -04:00
router_proptest.rs fix: remove trailing whitespace and formatting cleanup 2026-05-25 09:04:47 -04:00
task_store.proptest-regressions Phase 0 (miroir-qon): Re-verify foundation completion 2026-05-09 02:25:45 -04:00
task_store_redis.rs fix(clippy): auto-fix format strings and deprecated IndexMap::remove 2026-05-26 01:14:31 -04:00