Skip to content

Commit

Permalink
fix(message): include user-configurable timeout in Message Pact
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jul 14, 2018
1 parent 853794f commit c2dcd78
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dsl/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func newClient(MockServiceManager client.Service, verificationServiceManager cli
pactMockSvcManager: MockServiceManager,
verificationSvcManager: verificationServiceManager,
messageSvcManager: messageServiceManager,
TimeoutDuration: 10 * time.Second,
}
}

Expand Down
1 change: 1 addition & 0 deletions dsl/pact.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ func (p *Pact) VerifyMessageProvider(t *testing.T, request VerifyMessageRequest)
// It is the initiator of an interaction, and expects something on the other end
// of the interaction to respond - just in this case, not immediately.
func (p *Pact) VerifyMessageProviderRaw(request VerifyMessageRequest) (types.ProviderVerifierResponse, error) {
p.Setup(false)
response := types.ProviderVerifierResponse{}

// Starts the message wrapper API with hooks back to the message handlers
Expand Down
1 change: 0 additions & 1 deletion examples/messages/provider/message_pact_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ var logDir = fmt.Sprintf("%s/log", dir)

// Setup the Pact client.
func createPact() dsl.Pact {
// Create Pact connecting to local Daemon
return dsl.Pact{
Consumer: "PactGoMessageConsumer",
Provider: "PactGoMessageProvider",
Expand Down

0 comments on commit c2dcd78

Please sign in to comment.