Skip to content

Commit

Permalink
Adding Missing Param in Consumer test docs (#427)
Browse files Browse the repository at this point in the history
fix(docs): Adding the missing first param on the V2HTTPMockProvider.ExecuteTest()
call it should be t (*testing.T)
  • Loading branch information
braddle authored Jun 24, 2024
1 parent 8289281 commit 3bc153b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func TestUserAPIClient(t *testing.T) {
WithBodyMatch(&User{})

// Act: test our API client behaves correctly
err = mockProvider.ExecuteTest(func(config MockServerConfig) error {
err = mockProvider.ExecuteTest(t, func(config MockServerConfig) error {
// Initialise the API client and point it at the Pact mock server
// Pact spins up a dedicated mock server for each test
client := newClient(config.Host, config.Port)
Expand Down

0 comments on commit 3bc153b

Please sign in to comment.