Skip to content

test(mecatui): synchronize graceful shutdown output - #1894

Merged
jbeda merged 1 commit into
mainfrom
fix/mecatui-signal-output-flake
Sep 24, 2026
Merged

jbeda merged 1 commit into
mainfrom
fix/mecatui-signal-output-flake

Conversation

@jbeda

@jbeda jbeda commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1892.

  • Expose completion of the signal-child output drain.
  • Wait for the drain after child exit before asserting the graceful-shutdown output.
  • Join the drain goroutine in the double-signal test as well.

Verification

  • go test ./cmd/mecatui -run '^(TestSingleSignalGracefulExit|TestDoubleCtrlCForceExit)$' -count=100
  • go test -race ./cmd/mecatui -run '^(TestSingleSignalGracefulExit|TestDoubleCtrlCForceExit)$' -count=10

@jbeda
jbeda merged commit 3c582af into main Sep 24, 2026
36 checks passed
@jbeda
jbeda deleted the fix/mecatui-signal-output-flake branch September 24, 2026 21:53
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 25, 2026
2 tasks
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.

flake: mecatui graceful shutdown signal test misses output

1 participant