From d79911b22891a37f569148174c7a2c2dcf3c64bf Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Fri, 27 Sep 2024 16:20:20 +0100 Subject: [PATCH] chore(test): update verifyRequest to use PactURLs not files --- user_service_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_service_test.go b/user_service_test.go index 18d9068..934bba6 100644 --- a/user_service_test.go +++ b/user_service_test.go @@ -42,7 +42,7 @@ func TestPactProvider(t *testing.T) { // For builds triggered by a 'contract_requiring_verification_published' webhook, verify the changed pact against latest of mainBranch and any version currently deployed to an environment // https://docs.pact.io/pact_broker/webhooks#using-webhooks-with-the-contract_requiring_verification_published-event // The URL will have been passed in from the webhook to the CI job. - verifyRequest.PactFiles = []string{os.Getenv("PACT_URL")} + verifyRequest.PactURLs = []string{os.Getenv("PACT_URL")} } else { // For 'normal' provider builds, fetch the the latest version from the main branch of each consumer, as specified by // the consumer's mainBranch property and all the currently deployed and currently released and supported versions of each consumer.