-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add restapi tests for stateful timers #382
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #382 +/- ##
=======================================
Coverage 20.15% 20.15%
=======================================
Files 80 80
Lines 6600 6600
=======================================
Hits 1330 1330
Misses 5138 5138
Partials 132 132 ☔ View full report in Codecov by Sentry. |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
assert.NoError(err) | ||
|
||
// Check if callback was called | ||
require.Eventually(th, func() bool { mut.Lock(); defer mut.Unlock(); return called }, 10*time.Second, 50*time.Millisecond) |
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.
Very cool solution 👍
Summary
Add restapi tests for #375
Ticket Link
https://mattermost.atlassian.net/browse/MM-48342