Skip to content

Commit

Permalink
docs: Fix sample code in the docs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
greg0ire committed Feb 17, 2024
1 parent f25e79f commit 6bc9d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ In `func TestWireMock(t *testing.T)`, add the following code:
```go
// Create Container
ctx := context.Background()
container, err := RunDefaultContainerAndStopOnCleanup(ctx,
container, err := RunContainerAndStopOnCleanup(ctx, t,
WithMappingFile("hello", "hello-world.json"),
)
if err != nil {
Expand Down

0 comments on commit 6bc9d4b

Please sign in to comment.