Skip to content

Commit 1a0db10

Browse files
TerryHowecappyzawa
andauthored
Update pkg/azure/blob_test.go
Co-authored-by: Shu Kutsuzawa <[email protected]> Signed-off-by: Terry Howe <[email protected]>
1 parent e0c203d commit 1a0db10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/azure/blob_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ func TestNewClientAndBucketExistsWithProxy(t *testing.T) {
115115

116116
ok, err := client.BucketExists(context.Background(), "podinfo")
117117
if tt.err != "" {
118-
g.Expect(err).To(HaveOccurred())
119-
g.Expect(err.Error()).To(ContainSubstring(tt.err))
118+
g.Expect(err).To(MatchError(ContainSubstring(tt.err)))
120119
g.Expect(ok).To(BeFalse())
121120
} else {
122121
g.Expect(err).ToNot(HaveOccurred())

0 commit comments

Comments
 (0)