Skip to content

Commit 6a87eca

Browse files
committed
refactor: refactor setupNatsContainer to use natsC instead of redisC
- Rename `redisC` to `natsC` in the `setupNatsContainer` function - Update references from `redisC` to `natsC` in the `setupNatsContainer` function Signed-off-by: appleboy <[email protected]>
1 parent 86b92ba commit 6a87eca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nats_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ func setupNatsContainer(ctx context.Context, t *testing.T) (testcontainers.Conta
4545
},
4646
WaitingFor: wait.ForLog("Server is ready"),
4747
}
48-
redisC, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
48+
natsC, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
4949
ContainerRequest: req,
5050
Started: true,
5151
})
5252
require.NoError(t, err)
5353

54-
endpoint, err := redisC.Endpoint(ctx, "")
54+
endpoint, err := natsC.Endpoint(ctx, "")
5555
require.NoError(t, err)
5656

57-
return redisC, endpoint
57+
return natsC, endpoint
5858
}
5959

6060
func TestDefaultFlow(t *testing.T) {

0 commit comments

Comments
 (0)