diff --git a/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt b/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt index e9edd8d1b8..038baef765 100644 --- a/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt +++ b/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt @@ -392,11 +392,11 @@ open class PactVerificationInvocationContextProvider : TestTemplateInvocationCon logger.debug { "Verifying pacts for provider '$serviceName' and consumer '$consumerName'" } val pactSources = findPactSources(context).flatMap { - description += "\nSource: ${it.description()}" val valueResolver = getValueResolver(context) if (valueResolver != null) { it.setValueResolver(valueResolver) } + description += "\nSource: ${it.description()}" val pacts = it.load(serviceName) filterPactsByAnnotations(pacts, context.requiredTestClass).map { pact -> pact to it.pactSource } }.filter { p -> consumerName == null || p.first.consumer.name == consumerName }