-
Notifications
You must be signed in to change notification settings - Fork 38
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: flaky test #1169
chore: flaky test #1169
Conversation
Signed-off-by: Todd Baert <[email protected]>
48cd5f4
to
fe0ad3b
Compare
Quality Gate passedIssues Measures |
@@ -42,7 +42,7 @@ void reset_logs() { | |||
@DisplayName("should not throw exception if hook has different type argument than hookContext") | |||
void shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext() { | |||
OpenFeatureAPI api = OpenFeatureAPI.getInstance(); | |||
api.setProvider("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext", new DoSomethingProvider()); | |||
api.setProviderAndWait("shouldNotThrowExceptionIfHookHasDifferentTypeArgumentThanHookContext", new DoSomethingProvider()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test isn't helped by using the non-blocking provider setter here. There are a few tests where we want to not block (to assert behaviors about the SDK before the provider is ready, for instance) but this is not one.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1169 +/- ##
============================================
+ Coverage 93.01% 93.20% +0.19%
- Complexity 436 437 +1
============================================
Files 40 40
Lines 1016 1016
Branches 84 84
============================================
+ Hits 945 947 +2
+ Misses 43 42 -1
+ Partials 28 27 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
A test in this suite use the non-blocking provider set, which can result in flakiness in these cases since we aren't listening for a ready event.