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

Simplify some tests with the assert_next_with_timeout macro #4598

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

poljar
Copy link
Contributor

@poljar poljar commented Jan 31, 2025

While trying to figure out why #4596 fails, I noticed that some tests reimplement the assert_next_with_timeout macro using a function.

While I'm doing this I expanded the macro to make the timeout parameter optional and added some doc examples to the macro.

Additionally I noticed that one of our examples seems to contain a bug because of a misplaced #.

A review commit by commit makes the most sense.

@poljar poljar requested a review from a team as a code owner January 31, 2025 12:29
@poljar poljar requested review from jmartinesp and removed request for a team January 31, 2025 12:29
@poljar poljar requested a review from jmartinesp January 31, 2025 12:56
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.72%. Comparing base (29862fc) to head (e9c730d).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4598      +/-   ##
==========================================
+ Coverage   85.71%   85.72%   +0.01%     
==========================================
  Files         291      291              
  Lines       33290    33290              
==========================================
+ Hits        28534    28539       +5     
+ Misses       4756     4751       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@poljar poljar force-pushed the poljar/simplify-tests-assert-next branch from 4187db4 to e9c730d Compare January 31, 2025 13:00
@poljar poljar enabled auto-merge (rebase) January 31, 2025 13:00
@poljar poljar merged commit 8d27b0c into main Jan 31, 2025
40 checks passed
@poljar poljar deleted the poljar/simplify-tests-assert-next branch January 31, 2025 13:15
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