Reduce data size to speedup test
Suggested and executed by Claude
This commit is contained in:
@@ -12,7 +12,7 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
|
|||||||
current_time = DateTime.utc_now()
|
current_time = DateTime.utc_now()
|
||||||
|
|
||||||
records =
|
records =
|
||||||
Enum.map(1..19, fn i ->
|
Enum.map(1..5, fn i ->
|
||||||
purchased_at = DateTime.add(current_time, i, :second)
|
purchased_at = DateTime.add(current_time, i, :second)
|
||||||
record(%{purchased_at: purchased_at})
|
record(%{purchased_at: purchased_at})
|
||||||
end)
|
end)
|
||||||
@@ -21,7 +21,7 @@ defmodule MusicLibraryWeb.StatsLive.IndexTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp fill_wishlist(_) do
|
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}
|
%{wishlist: records}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user