We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c203d commit 1a0db10Copy full SHA for 1a0db10
pkg/azure/blob_test.go
@@ -115,8 +115,7 @@ func TestNewClientAndBucketExistsWithProxy(t *testing.T) {
115
116
ok, err := client.BucketExists(context.Background(), "podinfo")
117
if tt.err != "" {
118
- g.Expect(err).To(HaveOccurred())
119
- g.Expect(err.Error()).To(ContainSubstring(tt.err))
+ g.Expect(err).To(MatchError(ContainSubstring(tt.err)))
120
g.Expect(ok).To(BeFalse())
121
} else {
122
g.Expect(err).ToNot(HaveOccurred())
0 commit comments