Skip to content

Commit 6bc9d4b

Browse files
committed
docs: Fix sample code in the docs
If you try compiling the code in the quickstart guide, it will error out because RunDefaultContainerAndStopOnCleanup does not take an option argument. Switching to RunContainerAndStopOnCleanup seems to do the trick although I'm not sure at all whether this is the right function since this is my first try at using this library.
1 parent f25e79f commit 6bc9d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ In `func TestWireMock(t *testing.T)`, add the following code:
7474
```go
7575
// Create Container
7676
ctx := context.Background()
77-
container, err := RunDefaultContainerAndStopOnCleanup(ctx,
77+
container, err := RunContainerAndStopOnCleanup(ctx, t,
7878
WithMappingFile("hello", "hello-world.json"),
7979
)
8080
if err != nil {

0 commit comments

Comments
 (0)