diff --git a/docs/examples/nginx.md b/docs/examples/nginx.md index 401edcfdda..816a19d6b1 100644 --- a/docs/examples/nginx.md +++ b/docs/examples/nginx.md @@ -62,7 +62,7 @@ func TestIntegrationNginxLatestReturn(t *testing.T) { // Clean up the container after the test is complete t.Cleanup(func() { t.Log("terminating container") - if err := ctr.Terminate(ctx)); err != nil { + if err := nginxC.Terminate(ctx); err != nil { t.Errorf("failed to terminate container: :%w", err) } }) diff --git a/docs/examples/pulsar.md b/docs/examples/pulsar.md index a1b372b5d1..05ead64edd 100644 --- a/docs/examples/pulsar.md +++ b/docs/examples/pulsar.md @@ -74,7 +74,7 @@ func TestPulsar(t *testing.T) { // Cleanup the container after the test is complete t.Cleanup(func() { t.Log("terminating container") - if err := ctr.Terminate(ctx)); err != nil { + if err := c.Terminate(ctx); err != nil { t.Errorf("failed to terminate container: :%w", err) } }) diff --git a/docs/examples/redis.md b/docs/examples/redis.md index 2ae4940250..7d5208ece0 100644 --- a/docs/examples/redis.md +++ b/docs/examples/redis.md @@ -67,7 +67,7 @@ func TestIntegrationSetGet(t *testing.T) { // Clean up the container after the test is complete t.Cleanup(func() { t.Log("terminating container") - if err := redisContainer.Terminate(ctx)); err != nil { + if err := redisContainer.Terminate(ctx); err != nil { t.Errorf("failed to terminate container: :%w", err) } })