From 115ab922fff6e99e7f8139639c280c135c9e5149 Mon Sep 17 00:00:00 2001 From: Jack Wheatley <19939655+jbwheatley@users.noreply.github.com> Date: Sun, 27 Nov 2022 01:55:07 +0000 Subject: [PATCH 1/2] Update consumer to 4.4.2 in main --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index cafaf9bc..57d86c23 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -4,7 +4,7 @@ object Dependencies { val mockito = "4.9.0" - val pactJvm = "4.4.0" + val pactJvm = "4.4.2" val http4s = "1.0.0-M30" From 1bd8f42a33baca731094088ed2cf166eb8ef8e23 Mon Sep 17 00:00:00 2001 From: jbwheatley <19939655+jbwheatley@users.noreply.github.com> Date: Tue, 29 Nov 2022 15:11:43 +0000 Subject: [PATCH 2/2] fix writeMessagePactToFile error handling --- shared/src/main/scala/pact4s/MessagePactForgerResources.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/scala/pact4s/MessagePactForgerResources.scala b/shared/src/main/scala/pact4s/MessagePactForgerResources.scala index d90d1ec8..0c0debd6 100644 --- a/shared/src/main/scala/pact4s/MessagePactForgerResources.scala +++ b/shared/src/main/scala/pact4s/MessagePactForgerResources.scala @@ -24,7 +24,7 @@ trait MessagePactForgerResources extends BasePactForgerResources[MessagePact] wi val pactSpecVersion: PactSpecVersion = PactSpecVersion.V3 def writeMessagePactToFile(): Either[Throwable, Unit] = { - val write = pact.write(pactTestExecutionContext.getPactFolder, pactSpecVersion).component2() + val write = pact.write(pactTestExecutionContext.getPactFolder, pactSpecVersion).errorValue() if (write == null) Right(()) else Left(write) } }