mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
common: use 127.0.0.1 instead of localhost for external test services
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user