size: warn about inaccurate results when objects with unknown size

This commit is contained in:
albertony
2022-04-06 14:15:07 +02:00
parent fe271a4e35
commit 86bd5f6922
7 changed files with 23 additions and 12 deletions

View File

@@ -121,7 +121,7 @@ func TestDeduplicateFirst(t *testing.T) {
// list until we get one object
var objects, size int64
for try := 1; try <= *fstest.ListRetries; try++ {
objects, size, err = operations.Count(context.Background(), r.Fremote)
objects, size, _, err = operations.Count(context.Background(), r.Fremote)
require.NoError(t, err)
if objects == 1 {
break