Reduce data size to speedup test

Suggested and executed by Claude
This commit is contained in:
Claudio Ortolina
2025-06-14 21:15:26 +03:00
parent 07d9db6011
commit adc44e056e
@@ -12,7 +12,7 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
current_time = DateTime.utc_now()
records =
Enum.map(1..19, fn i ->
Enum.map(1..5, fn i ->
purchased_at = DateTime.add(current_time, i, :second)
record(%{purchased_at: purchased_at})
end)
@@ -21,7 +21,7 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
end
defp fill_wishlist(_) do
records = Enum.map(1..21, fn _ -> record(%{purchased_at: nil}) end)
records = Enum.map(1..3, fn _ -> record(%{purchased_at: nil}) end)
%{wishlist: records}
end