From 905ed65609cb17ea231ef805bb240c8c367e5a33 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Fri, 24 Jun 2022 16:14:25 +1000 Subject: [PATCH] fix: failing test on Windows --- .../au/com/dius/pact/provider/gradle/PactPluginSpec.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/gradle/src/test/groovy/au/com/dius/pact/provider/gradle/PactPluginSpec.groovy b/provider/gradle/src/test/groovy/au/com/dius/pact/provider/gradle/PactPluginSpec.groovy index 3fe66373ca..4b3829ab96 100644 --- a/provider/gradle/src/test/groovy/au/com/dius/pact/provider/gradle/PactPluginSpec.groovy +++ b/provider/gradle/src/test/groovy/au/com/dius/pact/provider/gradle/PactPluginSpec.groovy @@ -223,7 +223,7 @@ class PactPluginSpec extends Specification { consumer.auth == Auth.None.INSTANCE consumer.packagesToScan == ['one', 'two'] consumer.pactSource instanceof File - consumer.pactSource.toString().endsWith('path/to/pact') + consumer.pactSource.toURL().toString().endsWith('path/to/pact') consumer.stateChange.toString() == 'http://localhost:8001/tasks/pactStateChange' !consumer.stateChangeUsesBody }