diff --git a/test/schedules/repo_condensed_test.exs b/test/schedules/repo_condensed_test.exs index 6d3f7e83ef..7083b2ba98 100644 --- a/test/schedules/repo_condensed_test.exs +++ b/test/schedules/repo_condensed_test.exs @@ -53,7 +53,7 @@ defmodule Schedules.RepoCondensedTest do direction_id: 0 ) - before_now = unfiltered |> Enum.filter(before_now_fn) |> Enum.count() + before_now = Enum.count(unfiltered, before_now_fn) assert before_now > 0 filtered = @@ -64,7 +64,7 @@ defmodule Schedules.RepoCondensedTest do min_time: now ) - before_now = filtered |> Enum.filter(before_now_fn) |> Enum.count() + before_now = Enum.count(filtered, before_now_fn) assert before_now == 0 end diff --git a/test/schedules/repo_test.exs b/test/schedules/repo_test.exs index 10e9be7d91..370e92a11e 100644 --- a/test/schedules/repo_test.exs +++ b/test/schedules/repo_test.exs @@ -80,7 +80,7 @@ defmodule Schedules.RepoTest do direction_id: 0 ) - before_now = unfiltered |> Enum.filter(before_now_fn) |> Enum.count() + before_now = Enum.count(unfiltered, before_now_fn) assert before_now > 0 filtered = @@ -91,7 +91,7 @@ defmodule Schedules.RepoTest do min_time: now ) - before_now = filtered |> Enum.filter(before_now_fn) |> Enum.count() + before_now = Enum.count(filtered, before_now_fn) assert before_now == 0 end