From b33f0a58738a14eb10100869a67f129ce7cfbecb Mon Sep 17 00:00:00 2001 From: Tulsi Shah Date: Fri, 31 May 2024 12:08:45 +0000 Subject: [PATCH] small fix --- .../util/mounting/dynamic_mounting/dynamic_mounting.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/integration_tests/util/mounting/dynamic_mounting/dynamic_mounting.go b/tools/integration_tests/util/mounting/dynamic_mounting/dynamic_mounting.go index 97c679e27a..214bbb05fc 100644 --- a/tools/integration_tests/util/mounting/dynamic_mounting/dynamic_mounting.go +++ b/tools/integration_tests/util/mounting/dynamic_mounting/dynamic_mounting.go @@ -19,6 +19,7 @@ import ( "fmt" "log" "path" + "strings" "testing" "time" @@ -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 {