Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Jan 29, 2024
1 parent 8c73af8 commit 418d888
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions wait/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func ExampleHTTPStrategy() {
WaitingFor: wait.ForHTTP("/").WithStartupTimeout(10 * time.Second),
}

gogs, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
c, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
ContainerRequest: req,
Started: true,
})
Expand All @@ -42,12 +42,12 @@ func ExampleHTTPStrategy() {
// }

defer func() {
if err := gogs.Terminate(ctx); err != nil {
if err := c.Terminate(ctx); err != nil {
log.Fatalf("failed to terminate container: %s", err)
}
}()

state, err := gogs.State(ctx)
state, err := c.State(ctx)
if err != nil {
panic(err)
}
Expand All @@ -67,7 +67,7 @@ func ExampleHTTPStrategy_WithPort() {
WaitingFor: wait.ForHTTP("/").WithPort("80/tcp"),
}

gogs, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
c, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
ContainerRequest: req,
Started: true,
})
Expand All @@ -77,12 +77,12 @@ func ExampleHTTPStrategy_WithPort() {
// }

defer func() {
if err := gogs.Terminate(ctx); err != nil {
if err := c.Terminate(ctx); err != nil {
log.Fatalf("failed to terminate container: %s", err)
}
}()

state, err := gogs.State(ctx)
state, err := c.State(ctx)
if err != nil {
panic(err)
}
Expand All @@ -101,7 +101,7 @@ func ExampleHTTPStrategy_WithForcedIPv4LocalHost() {
WaitingFor: wait.ForHTTP("/").WithForcedIPv4LocalHost(),
}

gogs, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
c, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
ContainerRequest: req,
Started: true,
})
Expand All @@ -110,7 +110,7 @@ func ExampleHTTPStrategy_WithForcedIPv4LocalHost() {
}

defer func() {
if err := gogs.Terminate(ctx); err != nil {
if err := c.Terminate(ctx); err != nil {
log.Fatalf("failed to terminate container: %s", err)
}
}()
Expand Down

0 comments on commit 418d888

Please sign in to comment.