Skip to content

Commit 785198d

Browse files
committed
buckets
1 parent 5f917d7 commit 785198d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

buckets_test.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ func TestListBuckets(t *testing.T) {
3737
assert.Nil(t, err)
3838
assert.True(t, len(buckets) > 0)
3939

40+
found := false
41+
4042
// Look for "test-bucket" in the buckets
4143
for _, bucket := range buckets {
42-
if bucket.Name == "test-bucket" {
43-
assert.True(t, true)
44-
return
44+
if bucket.Name == "test-bucket-1" {
45+
found = true
4546
}
4647
}
47-
assert.False(t, true)
48+
49+
assert.True(t, found, "test-bucket-1 not found in buckets")
50+
4851
}
4952

5053
func TestListBuckets_TimeFormats(t *testing.T) {

0 commit comments

Comments
 (0)