Skip to content

Commit

Permalink
chore: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Mar 13, 2021
1 parent 32d22e7 commit da1b926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ class PactBrokerClientSpec extends Specification {

then:
1 * halClient.navigate() >> {
throw new InvalidNavigationRequest('PKIX path building failed', new SSLHandshakeException('PKIX path building failed'))
throw new InvalidNavigationRequest('PKIX path building failed',
new SSLHandshakeException('PKIX path building failed'))
}
notThrown(SSLHandshakeException)
result instanceof Err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ open class PactVerificationInvocationContextProvider : TestTemplateInvocationCon
val pacts = handleWith<List<Pact>> { loader.load(serviceName) }.getOrElse {
val ignoreAnnotation = AnnotationSupport.findAnnotation(context.requiredTestClass, IgnoreNoPactsToVerify::class.java)
if (ignoreAnnotation.isPresent &&
(valueResolver != null && valueResolver.resolveValue(ignoreAnnotation.get().ignoreIoErrors) == "true") ||
ignoreAnnotation.get().ignoreIoErrors == "true") {
((valueResolver != null && valueResolver.resolveValue(ignoreAnnotation.get().ignoreIoErrors) == "true") ||
ignoreAnnotation.get().ignoreIoErrors == "true")) {
emptyList()
} else {
throw it
Expand Down

0 comments on commit da1b926

Please sign in to comment.