Skip to content

Commit

Permalink
Fix credo
Browse files Browse the repository at this point in the history
  • Loading branch information
dvic authored and TheFirstAvenger committed Jun 16, 2022
1 parent 7778f27 commit 1701646
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/ets/bag_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ defmodule BagTest do
assert %{write_concurrency: true} = table_info(Bag.new!(write_concurrency: true))
assert %{write_concurrency: false} = table_info(Bag.new!(write_concurrency: false))

if ETS.TestUtils.is_otp25() do
if ETS.TestUtils.otp25?() do
assert %{write_concurrency: :auto} = table_info(Bag.new!(write_concurrency: :auto))
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/ets/set/key_value_set_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ defmodule KeyValueSetTest do
assert %{write_concurrency: true} = table_info(KeyValueSet.new!(write_concurrency: true))
assert %{write_concurrency: false} = table_info(KeyValueSet.new!(write_concurrency: false))

if ETS.TestUtils.is_otp25() do
if ETS.TestUtils.otp25?() do
assert %{write_concurrency: :auto} =
table_info(KeyValueSet.new!(write_concurrency: :auto))
end
Expand Down
2 changes: 1 addition & 1 deletion test/ets/set_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ defmodule SetTest do
assert %{write_concurrency: true} = table_info(Set.new!(write_concurrency: true))
assert %{write_concurrency: false} = table_info(Set.new!(write_concurrency: false))

if ETS.TestUtils.is_otp25() do
if ETS.TestUtils.otp25?() do
assert %{write_concurrency: :auto} = table_info(Set.new!(write_concurrency: :auto))
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/support/test_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule ETS.TestUtils do
wait_until_dead(pid)
end

def is_otp25 do
def otp25? do
:erlang.system_info(:otp_release) |> to_string() |> String.starts_with?("25")
end

Expand Down

0 comments on commit 1701646

Please sign in to comment.