Skip to content

[oximeter] Fix self_stat count test flakes - #7456

Merged
jgallagher merged 1 commit into
mainfrom
john/self-stat-error-counter-flake
Feb 4, 2025
Merged

jgallagher merged 1 commit into
mainfrom
john/self-stat-error-counter-flake

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

#7262 tried to fix the off-by-one test flake #7255, but it's still around. I think based on discussion on that PR (https://github.com/oxidecomputer/omicron/pull/7262/files#r1890548730), the assertion in it was adding one to the wrong side: it's possible the fake server may have seen one more request than the agent has finished noting, which means server_count may be equal to either count or count + 1, not count or count - 1.

The change from assert_eq to assert also caused the new flakes to not log the actual values; this puts them back into the assertion message in case this fix is still not quite right.

@jgallagher
jgallagher requested a review from bnaecker January 31, 2025 17:50

@bnaecker bnaecker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

D'oh, nice catch! Thank you

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