Skip to content

Commit e3e75d1

Browse files
authored
Merge pull request #192 from tompave/clean_up_test_utils
Remove now unneeded test helper
2 parents de79316 + da6cb88 commit e3e75d1

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

test/fun_with_flags/supervisor_test.exs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
defmodule FunWithFlags.SupervisorTest do
22
use FunWithFlags.TestCase, async: false
3-
import FunWithFlags.TestUtils
43

54
alias FunWithFlags.Config
65

@@ -219,10 +218,6 @@ defmodule FunWithFlags.SupervisorTest do
219218
end
220219

221220
defp expected_supervisor_spec do
222-
if on_elixir_15?() do
223-
%{intensity: 3, period: 5, strategy: :one_for_one, auto_shutdown: :never}
224-
else
225-
%{intensity: 3, period: 5, strategy: :one_for_one}
226-
end
221+
%{intensity: 3, period: 5, strategy: :one_for_one, auto_shutdown: :never}
227222
end
228223
end

test/support/test_utils.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ defmodule FunWithFlags.TestUtils do
8484
configure_redis_with([database: 5])
8585
end
8686

87-
def on_elixir_15? do
88-
Version.match?(System.version, ">= 1.15.0")
89-
end
90-
9187
def phx_pubsub_ready? do
9288
try do
9389
Process.whereis(FunWithFlags.Notifications.PhoenixPubSub) &&

0 commit comments

Comments
 (0)