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

chore: remove test sleeps, fix flaky test #194

Merged
merged 9 commits into from
Jan 19, 2024

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented Jan 19, 2024

This PR fixes a flaky events test and removes a bunch of sleeps with a new AssertUntilAsync util.

It brings the test suite time down to 5s from 15s on my machine.

@toddbaert toddbaert requested a review from a team as a code owner January 19, 2024 17:31
@toddbaert toddbaert force-pushed the chore/remove-sleeps-stabilize-tests branch from 7943c35 to 76b01e7 Compare January 19, 2024 17:31
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a790f78) 93.86% compared to head (3a3ddee) 93.86%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #194   +/-   ##
=======================================
  Coverage   93.86%   93.86%           
=======================================
  Files          23       23           
  Lines         946      946           
  Branches      105      105           
=======================================
  Hits          888      888           
  Misses         34       34           
  Partials       24       24           

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

Copy link
Member

@austindrenski austindrenski left a comment

Choose a reason for hiding this comment

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

Suggestion for the AssertUntilAsync(...) impl., but otherwise looks good!

test/OpenFeature.Tests/TestUtils.cs Outdated Show resolved Hide resolved
test/OpenFeature.Tests/TestUtilsTest.cs Outdated Show resolved Hide resolved
test/OpenFeature.Tests/TestUtilsTest.cs Outdated Show resolved Hide resolved
@toddbaert toddbaert force-pushed the chore/remove-sleeps-stabilize-tests branch from 25bb2e1 to 08ffb84 Compare January 19, 2024 20:10
Copy link
Member

@austindrenski austindrenski left a comment

Choose a reason for hiding this comment

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

LGTM!

toddbaert and others added 9 commits January 19, 2024 16:24
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Austin Drenski <austin@austindrenski.io>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert force-pushed the chore/remove-sleeps-stabilize-tests branch from 08ffb84 to 3a3ddee Compare January 19, 2024 21:24
@toddbaert toddbaert merged commit f2b9b03 into main Jan 19, 2024
12 checks passed
@toddbaert toddbaert deleted the chore/remove-sleeps-stabilize-tests branch January 19, 2024 21:32
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.

3 participants