Files
ngit-grasp/tests/sync
DanConwayDev fc99132f71 test(sync): observe source connection before asserting its gauge
HTTP startup can finish while the sync manager still reports its initial
false connection gauge. The test sampled it immediately, so removing the
fixture grace sleep exposed a scheduler-dependent assertion.

Wait for the specific source's connected gauge with a bounded deadline,
then retain the existing disconnect and retirement assertions. An aggregate
connection count could be satisfied by another relay. Production metrics
and connection behavior are deliberately unchanged.

Validation: source inspection, rustfmt and whitespace checks pass. Runtime
execution is deferred to CI/host as requested; no Cargo tests run in the VM.

Assisted-by: Codex (GPT-6)
2026-09-14 11:41:31 +00:00
..