From 8d4ef22b1319e9cc59df3a94ecb1f53b75c52259 Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Sun, 25 Mar 2018 16:35:17 +1100 Subject: [PATCH] fix(verifier): log out correct verifier output during tests --- client/verification_service.go | 1 - dsl/pact.go | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/client/verification_service.go b/client/verification_service.go index a2fb9707a..416bc73ef 100644 --- a/client/verification_service.go +++ b/client/verification_service.go @@ -20,7 +20,6 @@ type VerificationService struct { // --broker-password // --publish-verification-results // --provider-app-version -// --provider-app-version // --custom-provider-headers func (v *VerificationService) NewService(args []string) Service { log.Printf("[DEBUG] starting verification service with args: %v\n", args) diff --git a/dsl/pact.go b/dsl/pact.go index 8e54c1e34..1dc0cbc93 100644 --- a/dsl/pact.go +++ b/dsl/pact.go @@ -268,16 +268,11 @@ func (p *Pact) VerifyProviderRaw(request types.VerifyRequest) (types.ProviderVer func (p *Pact) VerifyProvider(t *testing.T, request types.VerifyRequest) (types.ProviderVerifierResponse, error) { res, err := p.VerifyProviderRaw(request) - if err != nil { - t.Fatal("Error:", err) - return res, err - } - for _, example := range res.Examples { t.Run(example.Description, func(st *testing.T) { st.Log(example.FullDescription) if example.Status != "passed" { - st.Errorf("%s\n", example.Exception.Message) + t.Errorf("%s\n%s\n", example.FullDescription, example.Exception.Message) } }) }