Skip to content

Use Await in task queue stats tests#10660

Open
stephanos wants to merge 7 commits into
mainfrom
stephanos/task-queue-stats-await
Open

Use Await in task queue stats tests#10660
stephanos wants to merge 7 commits into
mainfrom
stephanos/task-queue-stats-await

Conversation

@stephanos

@stephanos stephanos commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What changed?

Use Await.

Why?

Test stability; Await will gain adaptive test timeout and this PR fails without it then.

func (s *taskQueueStatsContext) requireWDVTaskQueueStatsRelaxed(
ctx context.Context,
a *require.Assertions,
func (s *TaskQueueStatsVersionSuite) requireWDVTaskQueueStatsRelaxed(

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.

These helpers were moved from the env/ctx to the suite to make assertions easier and fit into the style of the other suites.

@stephanos stephanos marked this pull request as ready for review June 11, 2026 19:51
@stephanos stephanos requested review from a team as code owners June 11, 2026 19:51
@stephanos stephanos requested a review from long-nt-tran June 11, 2026 19:51

@long-nt-tran long-nt-tran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, seems CI failure will be fixed with #10665 -- sorry missed that in the original migration PR review

Comment thread tests/task_queue_stats_test.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I also see some usage of context.Background() instead of s.Context() which could help w/ making test timeouts more stable, we can fix in subsequent PR (not blocking this PR since name suggests we're scoping it tighter, feel free to fix here or later

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.

Good catch; let me update that, too!

@stephanos stephanos force-pushed the stephanos/task-queue-stats-await branch from 0f60ba7 to 1100257 Compare June 12, 2026 18:07
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