From b9759ed237ca313ca5be91e07613812ac34b2be9 Mon Sep 17 00:00:00 2001 From: Pascal Schmid Date: Mon, 21 Feb 2022 08:35:51 +0100 Subject: [PATCH] Set env vars for mix test --- config/dev.exs | 3 --- config/test.exs | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/dev.exs b/config/dev.exs index 85df554..f9b637b 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -49,6 +49,3 @@ config :phoenix, :stacktrace_depth, 20 # Initialize plugs at runtime for faster development compilation config :phoenix, :plug_init_mode, :runtime - -config :kafka_ex, - brokers: "localhost:9093,localhost:9094,localhost:9095" diff --git a/config/test.exs b/config/test.exs index 913563e..231cba3 100644 --- a/config/test.exs +++ b/config/test.exs @@ -15,3 +15,8 @@ config :phoenix, :plug_init_mode, :runtime config :kafka_ex, disable_default_worker: true + +System.put_env("KAFKA_BROKER1_HOST", "localhost") +System.put_env("KAFKA_BROKER2_HOST", "localhost") +System.put_env("KAFKA_BROKER3_HOST", "localhost") +System.put_env("KAFKA_BROKER_PORT", "9092")