-
Notifications
You must be signed in to change notification settings - Fork 322
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: fix archiver test - inconsistent number of files #3902
Conversation
archiver/archiver_test.go
Outdated
@@ -171,7 +171,7 @@ func TestJobsArchival(t *testing.T) { | |||
fileIter := fm.ListFilesWithPrefix(context.Background(), "", prefix, 20) | |||
files, err := getAllFileNames(fileIter) | |||
require.NoError(t, err) | |||
require.Equal(t, sourcesPerWorkspace[i], len(files)) | |||
require.LessOrEqual(t, sourcesPerWorkspace[i], len(files)) |
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.
Why is the archiver producing more files than expected in this controlled test?
7376663
to
362b815
Compare
362b815
to
78430f1
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3902 +/- ##
==========================================
+ Coverage 69.16% 69.27% +0.10%
==========================================
Files 353 353
Lines 52903 52905 +2
==========================================
+ Hits 36589 36648 +59
+ Misses 13998 13941 -57
Partials 2316 2316
☔ View full report in Codecov by Sentry. |
Description
fixing a test in archiver, where there could be more files uploaded per source than 1.
Linear Ticket
slack thread
Security