Skip to content

test: wrap relay state queries in verifyOnRelayExec#344

Merged
afrind merged 2 commits into
mainfrom
pr344
May 27, 2026
Merged

test: wrap relay state queries in verifyOnRelayExec#344
afrind merged 2 commits into
mainfrom
pr344

Conversation

@afrind
Copy link
Copy Markdown
Contributor

@afrind afrind commented May 27, 2026

Add verifyOnRelayExec stub to fixture (runs func() inline for now,
will dispatch to relay executor in MT mode). Wrap all bare relay_->
state queries — findPublishNamespaceSessions and findPublishState —
so they are race-free when MT mode sets the relay executor.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com



This change is Reviewable

afrind and others added 2 commits May 27, 2026 17:53
…est fixture

Introduce resetRelay(), publisherInterface_, subscriberInterface_ members,
and publisherInterface()/subscriberInterface() accessors to MoQRelayTest.
Route all Publisher/Subscriber interface calls in tests through the accessors
so that MT mode can later inject CrossExecFilter wrappers transparently.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add verifyOnRelayExec stub to fixture (runs func() inline for now,
will dispatch to relay executor in MT mode). Wrap all bare relay_->
state queries — findPublishNamespaceSessions and findPublishState —
so they are race-free when MT mode sets the relay executor.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@gmarzot gmarzot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmarzot reviewed 9 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on akash-a-n, michalhosna, mondain, Oxyd, peterchave, suhasHere, and TimEvens).

@afrind afrind merged commit 72a2fcd into main May 27, 2026
16 checks passed
@afrind afrind deleted the pr344 branch May 27, 2026 22:42
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