Skip to content

Commit 8f77ed4

Browse files
authored
Merge pull request #1808 from TerryHowe/harden-blob-test
fix: blob test cores if no error
2 parents 32967c3 + 9c8d8c9 commit 8f77ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/azure/blob_test.go

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

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

0 commit comments

Comments
 (0)