Skip to content

Commit 46a8baf

Browse files
Preventing eventual consistency from breaking the test
1 parent ce16640 commit 46a8baf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/operations/check_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,7 @@ func TestParseSumFile(t *testing.T) {
309309
}
310310

311311
_ = r.WriteObject(ctx, sumFile, data.String(), t1)
312-
file, err := r.Fremote.NewObject(ctx, sumFile)
313-
assert.NoError(t, err)
312+
file := fstest.NewObject(ctx, t, r.Fremote, sumFile)
314313
sums, err := operations.ParseSumFile(ctx, file)
315314
assert.NoError(t, err)
316315

0 commit comments

Comments
 (0)