diff --git a/README.md b/README.md index d80283a0c..26d5c90ff 100644 --- a/README.md +++ b/README.md @@ -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)