Skip to content

Commit f2481cb

Browse files
committed
Fail when errors listing/clearing bucket
1 parent c6e3ebd commit f2481cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/zt_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,15 @@ func deleteGCPBucket(c *chk.C, client *gcpUtils.Client, bucketName string, waitQ
600600
break
601601
}
602602

603-
c.Log("Failed to clear GCS bucket:", err) // todo: maybe this code should be more resilient
603+
// Failure during listing
604+
c.Assert(err, chk.Equals, nil)
604605
return
605606
}
606607
if err == nil {
607608
err = bucket.Object(attrs.Name).Delete(nil)
608609
if err != nil {
609-
c.Log("Could not clear GCS Buckets:", err) // todo: maybe this code should be more resilient
610+
// Failure cleaning bucket
611+
c.Assert(err, chk.Equals, nil)
610612
return
611613
}
612614
}

0 commit comments

Comments
 (0)