common: handle per-candidate ports for external service checks

This commit is contained in:
Vincent Bernat
2024-01-20 09:22:09 +01:00
parent 621fff521d
commit 39882fd98e
4 changed files with 16 additions and 11 deletions

View File

@@ -118,7 +118,8 @@ func TestCacheByRequestBody(t *testing.T) {
}
func TestRedis(t *testing.T) {
server := helpers.CheckExternalService(t, "Redis", []string{"redis", "127.0.0.1"}, "6379")
server := helpers.CheckExternalService(t, "Redis",
[]string{"redis:6379", "127.0.0.1:6379"})
client := redis.NewClient(&redis.Options{
Addr: server,
DB: 10,