Skip to content

Commit 6ff3cd4

Browse files
authored
Fix the misattributed root cause of broken tests (#204)
1 parent 2a2e861 commit 6ff3cd4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/shared/pubsub_test.exs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,10 @@ defmodule Phoenix.PubSubTest do
199199
defp assert_ets_duplicate_count(pubsub, count) do
200200
result = :ets.lookup_element(pubsub, -2, 2)
201201

202-
case System.otp_release() do
203-
otp when otp >= "28" ->
204-
assert {{:duplicate, :pid}, ^count, _} = result
205-
_ ->
206-
assert {:duplicate, ^count, _} = result
202+
if Version.match?(System.version(), ">= 1.19.0") do
203+
assert {{:duplicate, :pid}, ^count, _} = result
204+
else
205+
assert {:duplicate, ^count, _} = result
207206
end
208207
end
209208
end

0 commit comments

Comments
 (0)