Skip to content

Commit

Permalink
fail test in test_runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 committed Nov 18, 2020
1 parent 562eaff commit 0aef55c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions priv/perf/apps/load_test/lib/test_runner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ defmodule LoadTest.TestRunner do
@circleci_tag "env:perf_circleci"

def run() do
case System.get_env("STATIX_TAG") do
nil -> raise("STATIX_TAG is not set")
_ -> :ok
end

case Config.parse() do
{:ok, {runner_module, config}} -> run_test(runner_module, config)
:ok -> :ok
Expand Down
3 changes: 1 addition & 2 deletions priv/perf/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ config :logger, :console,
config :statix,
host: "localhost",
port: 8125,
tags: [System.get_env("STATIX_TAG") || raise("STATIX_TAG is not set")]

tags: [System.get_env("STATIX_TAG")]

config :load_test, :datadog,
api_key: System.get_env("DD_API_KEY"),
Expand Down

0 comments on commit 0aef55c

Please sign in to comment.