diff --git a/common/clickhousedb/tests.go b/common/clickhousedb/tests.go index 3aaaa9cd..8ef9d6b1 100644 --- a/common/clickhousedb/tests.go +++ b/common/clickhousedb/tests.go @@ -20,7 +20,7 @@ import ( // SetupClickHouse configures a client to use for testing. func SetupClickHouse(t *testing.T, r *reporter.Reporter) *Component { t.Helper() - chServer := helpers.CheckExternalService(t, "ClickHouse", []string{"clickhouse", "localhost"}, "9000") + chServer := helpers.CheckExternalService(t, "ClickHouse", []string{"clickhouse", "127.0.0.1"}, "9000") config := DefaultConfiguration() config.Servers = []string{chServer} config.DialTimeout = 100 * time.Millisecond diff --git a/common/httpserver/cache_test.go b/common/httpserver/cache_test.go index fec423b0..616c15b3 100644 --- a/common/httpserver/cache_test.go +++ b/common/httpserver/cache_test.go @@ -118,7 +118,7 @@ func TestCacheByRequestBody(t *testing.T) { } func TestRedis(t *testing.T) { - server := helpers.CheckExternalService(t, "Redis", []string{"redis", "localhost"}, "6379") + server := helpers.CheckExternalService(t, "Redis", []string{"redis", "127.0.0.1"}, "6379") client := redis.NewClient(&redis.Options{ Addr: server, DB: 10, diff --git a/common/kafka/tests.go b/common/kafka/tests.go index aaef6985..c230101e 100644 --- a/common/kafka/tests.go +++ b/common/kafka/tests.go @@ -16,7 +16,7 @@ import ( // SetupKafkaBroker configures a client to use for testing. func SetupKafkaBroker(t *testing.T) (sarama.Client, []string) { - broker := helpers.CheckExternalService(t, "Kafka", []string{"kafka", "localhost"}, "9092") + broker := helpers.CheckExternalService(t, "Kafka", []string{"kafka", "127.0.0.1"}, "9092") // Wait for broker to be ready saramaConfig := sarama.NewConfig()