Skip to content

Commit bb3d925

Browse files
committed
Fix ssh test error
1 parent c89e1a3 commit bb3d925

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

api/plugin/plugin_connection_test.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,14 @@ var _ = Describe("Plugin Connection", func() {
200200

201201
var response Response
202202
err = connection.Make(request, &response, nil)
203-
Expect(err).To(MatchError(pluginerror.SSLValidationHostnameError{
204-
Message: "x509: certificate is valid for example.com, not loopback.cli.fun",
205-
}))
203+
Expect(err).To(
204+
SatisfyAny(
205+
MatchError(pluginerror.SSLValidationHostnameError{
206+
Message: "x509: certificate is valid for example.com, *.example.com, not loopback.cli.fun",
207+
}),
208+
MatchError(pluginerror.SSLValidationHostnameError{
209+
Message: "x509: certificate is valid for example.com, not loopback.cli.fun",
210+
})))
206211
})
207212
})
208213
})

0 commit comments

Comments
 (0)