Skip to content

Fix flaky unit tests #2364

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

Merged
merged 2 commits into from
Aug 12, 2024
Merged

Conversation

sjberman
Copy link
Collaborator

@sjberman sjberman commented Aug 12, 2024

Problem: A couple unit tests were flaky due to the ordering of maps or lists that were being parsed.

Solution: Eliminate the randomness of the results.

@sjberman sjberman requested a review from a team as a code owner August 12, 2024 14:16
@github-actions github-actions bot added the chore Pull requests for routine tasks label Aug 12, 2024
Problem: A couple unit tests were flaky due to the ordering of maps or lists that were being parsed.

Solution: Eliminate the randomness of the results.
@sjberman sjberman force-pushed the chore/fix-stream-unit-test branch from 5cea811 to 3b35c3e Compare August 12, 2024 14:25
@sjberman sjberman changed the title Fix flaky unit test Fix flaky unit tests Aug 12, 2024
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.66%. Comparing base (21e0bad) to head (c64e76b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2364      +/-   ##
==========================================
- Coverage   88.85%   88.66%   -0.20%     
==========================================
  Files         100       99       -1     
  Lines        7513     7284     -229     
  Branches       50        0      -50     
==========================================
- Hits         6676     6458     -218     
+ Misses        781      770      -11     
  Partials       56       56              

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

@sjberman sjberman enabled auto-merge (squash) August 12, 2024 16:34
@sjberman sjberman merged commit 95d64ba into nginx:main Aug 12, 2024
37 checks passed
@sjberman sjberman deleted the chore/fix-stream-unit-test branch November 19, 2024 20:44
miledxz added a commit to miledxz/nginx-gateway-fabric that referenced this pull request Jan 14, 2025
Problem: A couple unit tests were flaky due to the ordering of maps or lists that were being parsed.

Solution: Eliminate the randomness of the results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants