Skip to content

Commit

Permalink
fix(verifier): log out correct verifier output during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Mar 25, 2018
1 parent ca1feaa commit 8d4ef22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion client/verification_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 1 addition & 6 deletions dsl/pact.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
}
Expand Down

0 comments on commit 8d4ef22

Please sign in to comment.