-
Notifications
You must be signed in to change notification settings - Fork 594
test(general): add helpers to simplify tests #4191
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
Conversation
| // verify quick maintenance was run | ||
| sch, err = maintenance.GetSchedule(ctx, env.RepositoryWriter) | ||
|
|
||
| require.NoError(t, err) | ||
|
|
||
| require.NotEmpty(t, sch.Runs, "maintenance runs") | ||
| require.False(t, sch.NextQuickMaintenanceTime.IsZero(), "unexpected NextQuickMaintenanceTime") |
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 was already in the verifyEpochTaskRanInQuickMaintenance helper.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4191 +/- ##
==========================================
+ Coverage 75.86% 76.08% +0.21%
==========================================
Files 470 501 +31
Lines 37301 38483 +1182
==========================================
+ Hits 28299 29280 +981
- Misses 7071 7258 +187
- Partials 1931 1945 +14 ☔ View full report in Codecov by Sentry. |
6d0a7ee to
6b0e01b
Compare
redgoat650
left a comment
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.
Looks good 👍
|
Thanks @redgoat650 |
* move common functionality into `verifyEpochTaskRanInQuickMaintenance` helper * add `verifyEpochManagerIsEnabled` helper * add `setRepositoryOwner` helper * rename helper
* move common functionality into `verifyEpochTaskRanInQuickMaintenance` helper * add `verifyEpochManagerIsEnabled` helper * add `setRepositoryOwner` helper * rename helper
Followup to #4185
Credits to @ashmrtn for the feedback.
Broken down individual changes into separate commits to facilitate review.