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

Fix flaky sigv4 test #1222

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

AndreKurait
Copy link
Member

@AndreKurait AndreKurait commented Jan 3, 2025

Description

Fix flaky test by fixing time.

Issues Resolved

MIGRATIONS-2294

Testing

Fixed unit test, validated by including a time.sleep(1) before the second signing before and after this change to induce it to fail consistently. This change fixed it.

Check List

  • New functionality includes testing
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Andre Kurait <[email protected]>
@AndreKurait AndreKurait marked this pull request as ready for review January 3, 2025 21:11
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.49%. Comparing base (042b6dc) to head (cd834bd).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1222   +/-   ##
=========================================
  Coverage     80.49%   80.49%           
  Complexity     3079     3079           
=========================================
  Files           421      421           
  Lines         15650    15650           
  Branches       1057     1057           
=========================================
+ Hits          12597    12598    +1     
+ Misses         2409     2408    -1     
  Partials        644      644           
Flag Coverage Δ
unittests 80.49% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@AndreKurait AndreKurait changed the title Fix flakey sigv4 test Fix flaky sigv4 test Jan 3, 2025
Copy link
Collaborator

@lewijacn lewijacn 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!

@AndreKurait AndreKurait merged commit 933ef76 into opensearch-project:main Jan 3, 2025
22 checks passed
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