Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah committed May 31, 2024
1 parent 8095f76 commit b33f0a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"fmt"
"log"
"path"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -127,7 +128,7 @@ func DeleteTestBucketForDynamicMounting(ctx context.Context, client *storage.Cli
it := bucket.Objects(ctx, query)
for {
objAttrs, err := it.Next()
if err == storage.ErrObjectNotExist {
if strings.Contains(err.Error(), "no more items in iterator") {
break // No more objects
}
if err != nil {
Expand Down

0 comments on commit b33f0a5

Please sign in to comment.