Set env vars for mix test

This commit is contained in:
2022-02-21 08:35:51 +01:00
parent 9ba6f13bfb
commit b9759ed237
2 changed files with 5 additions and 3 deletions

View File

@@ -49,6 +49,3 @@ config :phoenix, :stacktrace_depth, 20
# Initialize plugs at runtime for faster development compilation # Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime config :phoenix, :plug_init_mode, :runtime
config :kafka_ex,
brokers: "localhost:9093,localhost:9094,localhost:9095"

View File

@@ -15,3 +15,8 @@ config :phoenix, :plug_init_mode, :runtime
config :kafka_ex, config :kafka_ex,
disable_default_worker: true 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")