Fix flaky test
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4e4201f7d2
commit
9ef4cc5853
|
@ -138,7 +138,7 @@ func TestS3PutObject(t *testing.T) {
|
||||||
n, err := store.PutObject(context.Background(), key, &testReader{exp: contentLength}, contentType)
|
n, err := store.PutObject(context.Background(), key, &testReader{exp: contentLength}, contentType)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
assert.Equal(t, int64(contentLength), n)
|
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) {
|
t.Run("NOK,UploadPartFailure", func(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue