Test: tracer_reload streams until the new file has events #465

Merged
jcoffey-dev merged 1 commits from fix/464-tracer-reload-stream into main 2026-11-19 01:37:46 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev ff6f36970c Test: tracer_reload streams until the new file has events
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 10m47s
The path-change part sent a fixed 2000 events and moved the tracer 5 ms
in. The stream finishes in a few tens of ms, so on a fast machine every
event reached the old file before the reload ran and the test failed.

The stream now runs until the new file has some of it (capped at
500,000), starts the move only once the old file has some, and checks
every event it sent is in exactly one of the two files.

Fixes #464
2026-11-18 18:26:08 -07:00