Skip to content

Wait for the legacy relay to start before stopping it in tests - #66

Merged
dibin666 merged 1 commit into
masterfrom
fix-flaky-legacy-stop-test
Oct 11, 2026
Merged

dibin666 merged 1 commit into
masterfrom
fix-flaky-legacy-stop-test

Conversation

@dibin666

Copy link
Copy Markdown
Owner

The release run for #65 failed in service.test.js > stopServices still stops what an older release recorded without start tokens.

Right after spawn, /proc/<pid>/cmdline can still be empty while the kernel finishes exec. An empty command line doesn't match our entry points, so stopServices (correctly) left the process alone. The test now waits for the child to print ready before it calls stopServices.

This is a test-only change.

Right after spawn, /proc/<pid>/cmdline can still be empty while the kernel
finishes exec, so stopServices rightly refused to recognise the process as
ours. On a busy CI runner this failed the release run for #65.
@dibin666
dibin666 merged commit 281da3e into master Oct 11, 2026
2 checks passed
@dibin666
dibin666 deleted the fix-flaky-legacy-stop-test branch October 11, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant