Skip to content

Commit

Permalink
Fixed Failing integration test (minio#3071)
Browse files Browse the repository at this point in the history
Added a wait time after bucket creation to list the new buckets list
  • Loading branch information
bexsoft authored and cesnietor committed Jan 12, 2024
1 parent 06c3905 commit 3e8391e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration/user_api_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2166,6 +2166,9 @@ func TestListBuckets(t *testing.T) {
}
}

// Waiting to retrieve the new list of buckets
time.Sleep(3 * time.Second)

// 2. List buckets
listBucketsResponse, listBucketsError := ListBuckets()
assert.Nil(listBucketsError)
Expand Down

0 comments on commit 3e8391e

Please sign in to comment.