From 42d1d2fc6102adbc3771a13f199012e266231d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 9 Nov 2022 18:59:08 +0100 Subject: [PATCH] docs: fix syntax (#615) --- docs/examples/nginx.md | 2 +- docs/examples/pulsar.md | 2 +- docs/examples/redis.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) } })