Skip to content

Commit

Permalink
update gotest.md - fix errors in the example (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
pantafive committed Nov 15, 2022
1 parent 70932aa commit f72dfee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/quickstart/gotest.md
Expand Up @@ -17,6 +17,9 @@ go get github.com/testcontainers/testcontainers-go

```go
import (
"context"
"testing"

"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/wait"
)
Expand All @@ -36,8 +39,8 @@ func TestWithRedis(t *testing.T) {
t.Error(err)
}
defer func() {
if err := redisC.terminate(ctx); err != nil {
t.Fatalf("failed to terminate container: %w", err)
if err := redisC.Terminate(ctx); err != nil {
t.Fatalf("failed to terminate container: %s", err.Error())
}
}()
}
Expand Down

0 comments on commit f72dfee

Please sign in to comment.