Skip to content

fix: ws publisher and flaky test#779

Merged
shaspitz merged 1 commit intomainfrom
fix-ws
Sep 9, 2025
Merged

fix: ws publisher and flaky test#779
shaspitz merged 1 commit intomainfrom
fix-ws

Conversation

@shaspitz
Copy link
Copy Markdown
Contributor

@shaspitz shaspitz commented Sep 5, 2025

Following up on issue created by #774

  • wsPublisher was flawed in that when calling Start, the AddContracts function was signaling updateCh, causing an unnecessary re-subscription whenever someone calls Start.
  • Separately, TestWSPublisher was calling AddContracts right after Start, causing another unnecessary re-subscription. The test logic relies on there not being unnecessary re-subscriptions like this, so it was sometimes failing via race conditions. This should all be fixed now.

@shaspitz shaspitz marked this pull request as ready for review September 5, 2025 19:22
@shaspitz shaspitz merged commit c43fa46 into main Sep 9, 2025
5 checks passed
@shaspitz shaspitz deleted the fix-ws branch September 9, 2025 18:29
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