-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[storage] Simplify integration tests #5312
Conversation
Signed-off-by: Yuri Shkuro <github@ysh.us>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5312 +/- ##
=======================================
Coverage 95.15% 95.15%
=======================================
Files 340 340
Lines 16664 16666 +2
=======================================
+ Hits 15856 15858 +2
Misses 617 617
Partials 191 191
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -154,31 +148,6 @@ func runIndexRolloverWithILMTest(t *testing.T, client *elastic.Client, prefix st | |||
assert.ElementsMatch(t, actualWriteAliases, expectedWriteAliases, fmt.Sprintf("aliases found: %v, expected: %v", actualWriteAliases, expectedWriteAliases)) | |||
} | |||
|
|||
func createESClient() (*elastic.Client, error) { |
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.
these functions are identical to those defined in cleaner_test
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.
lgtm!
Description of the changes
STORAGE
env vartesting.T
to functions, simplify error handlingHow was this change tested?