test(inputs.redis_sentinel): Resolve timeout looking for port (#14051)

This commit is contained in:
Joshua Powers 2023-10-04 13:41:56 -06:00 committed by GitHub
parent f8a5a17b47
commit 3dded476ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -358,12 +358,13 @@ func TestRedisSentinelInfoAll(t *testing.T) {
func createRedisContainer() testutil.Container {
return testutil.Container{
Image: "redis:7.0-alpine",
Name: "telegraf-test-redis-sentinel-redis",
Networks: []string{networkName},
Image: "redis:7.0-alpine",
Name: "telegraf-test-redis-sentinel-redis",
Networks: []string{networkName},
ExposedPorts: []string{"6379"},
WaitingFor: wait.ForAll(
wait.ForLog("Ready to accept connections"),
wait.ForExposedPort(),
wait.ForListeningPort(nat.Port("6379")),
),
}
}