summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Every <devstopfix@gmail.com>2020-03-25 16:57:09 +0000
committerJames Every <devstopfix@gmail.com>2020-03-25 16:57:09 +0000
commite99bbb4ada42aec6bf5b6d78def9b7aeb1d4ea2e (patch)
treef733dcd323cc5792e44aed3bfe9d0e60973a1734
parentRefactor tests to use function (diff)
Fix race condition in test
Ignore expected exits: ** (EXIT from #PID<0.1677.0>) shutdown
-rw-r--r--test/gen_magic_test.exs2
-rw-r--r--test/test_helper.exs4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/gen_magic_test.exs b/test/gen_magic_test.exs
index 39d6475..efa4855 100644
--- a/test/gen_magic_test.exs
+++ b/test/gen_magic_test.exs
@@ -33,7 +33,9 @@ defmodule GenMagicTest do
|> assert
end
+ @tag :ci
test "Non-existent file" do
+ Process.flag(:trap_exit, true)
{:ok, pid} = Apprentice.start_link([])
path = missing_filename()
assert_no_file(GenServer.call(pid, {:file, path}))
diff --git a/test/test_helper.exs b/test/test_helper.exs
index a7e2f12..7b861c9 100644
--- a/test/test_helper.exs
+++ b/test/test_helper.exs
@@ -1,5 +1,3 @@
-excluded =
- [:breaking] ++
- if(System.get_env("TRAVIS") != nil, do: [:ci], else: [])
+excluded = if(System.get_env("TRAVIS") != nil, do: [:ci], else: [])
ExUnit.start(exclude: excluded)