Skip to content

Port channel send/wait helpers to TestEnv #10159

Merged
stephanos merged 1 commit into
mainfrom
stephanos/chn-helpers-env
May 11, 2026
Merged

Port channel send/wait helpers to TestEnv #10159
stephanos merged 1 commit into
mainfrom
stephanos/chn-helpers-env

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 1, 2026

What changed?

Port WaitForChannel and SendToChannel to TestEnv.

Why?

Safer / simpler.

@stephanos stephanos force-pushed the stephanos/chn-helpers-env branch from cd3ea9f to 081a6c3 Compare May 1, 2026 22:35
select {
case ch <- struct{}{}:
case <-ctx.Done():
s.FailNow("context timeout while sending to channel")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

s.FailNow is not safe in parallelsuite as it might refer to a shared test env.

@stephanos stephanos changed the title Add TestEnv channel helpers Add TestEnv channel send/wait helpers May 1, 2026
@stephanos stephanos changed the title Add TestEnv channel send/wait helpers Port channel send/wait helpers to TestEnv May 1, 2026
@stephanos stephanos marked this pull request as ready for review May 1, 2026 22:38
@stephanos stephanos requested review from a team as code owners May 1, 2026 22:38
@stephanos stephanos requested review from chaptersix and spkane31 May 1, 2026 22:38
@stephanos stephanos force-pushed the stephanos/chn-helpers-env branch 2 times, most recently from 8b0e1f1 to 44e496c Compare May 11, 2026 15:48
@stephanos stephanos enabled auto-merge (squash) May 11, 2026 15:48
@stephanos stephanos force-pushed the stephanos/chn-helpers-env branch from 44e496c to 7426945 Compare May 11, 2026 18:28
@stephanos stephanos merged commit 90dac58 into main May 11, 2026
47 checks passed
@stephanos stephanos deleted the stephanos/chn-helpers-env branch May 11, 2026 18:48
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