From 3bc153b26cc10f4b19c54d1acf2350f92803321d Mon Sep 17 00:00:00 2001 From: Mark Bradley Date: Mon, 24 Jun 2024 14:29:06 +0100 Subject: [PATCH] Adding Missing Param in Consumer test docs (#427) fix(docs): Adding the missing first param on the V2HTTPMockProvider.ExecuteTest() call it should be t (*testing.T) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)