Fix flaky test
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Rob Watson 2021-12-31 19:53:46 +01:00
parent 4e4201f7d2
commit 9ef4cc5853
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ func TestS3PutObject(t *testing.T) {
n, err := store.PutObject(context.Background(), key, &testReader{exp: contentLength}, contentType)
require.NoError(t, err)
assert.Equal(t, int64(contentLength), n)
assert.Equal(t, []int64{5_242_880, 5_242_880, 5_242_880, 4_271_360}, partLengths)
assert.ElementsMatch(t, []int64{5_242_880, 5_242_880, 5_242_880, 4_271_360}, partLengths)
})
t.Run("NOK,UploadPartFailure", func(t *testing.T) {