Skip to content

Commit

Permalink
fix: improve environment configuration and testing setup
Browse files Browse the repository at this point in the history
- Change `REDIS_MASTER_HOST` environment variable value from `localhost` to `redis` in `setupRedisSentinelContainer` function

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jan 18, 2025
1 parent 8c79034 commit 647d1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func setupRedisSentinelContainer(ctx context.Context, t *testing.T) (testcontain
[]string{"redis-cli", "-h", "localhost", "-p", "26379", "ping"},
),
Env: map[string]string{
"REDIS_MASTER_HOST": "localhost",
"REDIS_MASTER_HOST": "redis",
"REDIS_MASTER_SET": "mymaster",
"REDIS_SENTINEL_QUORUM": "1",
},
Expand Down

0 comments on commit 647d1aa

Please sign in to comment.