Skip to content

Mock wl-copy in the empty-text clipboard test - #152

Merged
JRufer merged 1 commit into
developmentfrom
fix/clipboard-test-real-wl-copy
Sep 24, 2026
Merged

JRufer merged 1 commit into
developmentfrom
fix/clipboard-test-real-wl-copy

Conversation

@JRufer

@JRufer JRufer commented Sep 24, 2026

Copy link
Copy Markdown
Owner

test_clipboard_target_failure_empty_text was the one clipboard test without MockClipboardTool. On a Wayland desktop it ran the real wl-copy, which caused two problems:

  • It replaced the developer's actual clipboard contents.
  • wl-copy forks a background server to keep serving the clipboard, and that server kept the test binary's stdout open. So cargo test -p voxctrl-routing | tail hung forever after every test had passed.

The test now installs the same mock the other two clipboard tests use.

Test plan

  • timeout 120 sh -c 'cargo test -p voxctrl-routing | tail -3' now exits 0; before the fix it timed out

🤖 Generated with Claude Code

It was the one clipboard test without MockClipboardTool, so on a Wayland
desktop it ran the real wl-copy: the developer's clipboard was replaced,
and wl-copy's forked background server inherited the test binary's stdout,
so `cargo test -p voxctrl-routing | tail` hung after every test passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JRufer JRufer mentioned this pull request Sep 24, 2026
6 tasks
@JRufer
JRufer merged commit e9bf19f into development Sep 24, 2026
5 checks passed
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