Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(subscriber): add tests for excessive poll counts #476

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

hds
Copy link
Collaborator

@hds hds commented Oct 12, 2023

A defect in the way polls are counted was fixed in #440. The defect
caused the polls of a "child" task to also be counted on the "parent"
task. Where in this case, the "parent" is a task that spawns the "child"
task.

This change adds a regression test for that fix.

To do so, functionality to record and validate poll counts is added to
the console-subscriber integration test framework. The new
functionality is also used to add some basic tests for poll counts.

A defect in the way polls are counted was fixed in #440. The defect
caused the polls of a "child" task to also be counted on the "parent"
task. Where in this case, the "parent" is a task that spawns the "child"
task.

This change adds a regression test for that fix.

To do so, functionality to record and validate poll counts is added to
the `console-subscriber` integration test framework. The new
functionality is also used to add some basic tests for poll counts.
@hds hds requested a review from a team as a code owner October 12, 2023 09:36
console-subscriber/tests/support/task.rs Outdated Show resolved Hide resolved
@hawkw hawkw enabled auto-merge (squash) November 16, 2023 17:22
@hawkw hawkw merged commit 8269b5f into main Nov 16, 2023
11 checks passed
@hawkw hawkw deleted the hds/subscriber-test-excessive-poll-count branch November 16, 2023 17:27
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