Skip to content

The Discord soundboard test waits for the frame it checks, so it stops failing on Windows - #1035

Closed
unRekable wants to merge 1 commit into
mainfrom
fix/soundboard-test-waits-for-frame
Closed

unRekable wants to merge 1 commit into
mainfrom
fix/soundboard-test-waits-for-frame

Conversation

@unRekable

Copy link
Copy Markdown
Collaborator

What changed and why

an_activity_a_stage_and_a_soundboard_are_part_of_a_discord_voice_channel read the gateway frame it checks at the moment chatd answered. The test had pushed the guild's sounds before chatd asked for them, so chatd sent its request (opcode 31) and answered at once, and the fake's reader thread had not recorded that frame yet. On main (d2cea1d) the test fails three times out of three when it is run alone on Windows, with "the guild soundboard was asked for". It now waits for the frame, up to the 15 seconds the other waits in this file allow, and checks that it names the guild.

Type

  • feature
  • fix
  • perf
  • refactor
  • chore
  • docs

Platforms

  • windows
  • macos
  • linux
  • android
  • ios

Proof

No scenario: only a test changed and nothing changes for the user. Run on this branch on Windows before this pull request: cargo build --workspace --all-targets --features tinyclient/gui, then cargo nextest run --workspace --features tinyclient/gui (3678 passed, 28 skipped, the changed test among them), then cargo test --workspace --doc --features tinyclient/gui.

Compatibility

No protocol change.

Risk and rollback

Only a test waits where it read at once. Revert the commit.

Release note

None.

Part of #1026 (TCI-8: tests that pass only on a retry).

@itz4blitz

Copy link
Copy Markdown
Collaborator

Shipped in the 0.2.94 release via #1046.

@itz4blitz itz4blitz closed this Dec 5, 2026
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.

2 participants