From 65a6bbbea9557245c6594203a8ba49be76db07c8 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Tue, 22 Oct 2024 18:36:13 +0100 Subject: [PATCH] Increase tests counts Makes distribution of counts more interesting, reducing false positives in the assertions (which are very simple) --- test/music_library_web/controllers/stats_controller_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/music_library_web/controllers/stats_controller_test.exs b/test/music_library_web/controllers/stats_controller_test.exs index 6003c29e..d40b2dff 100644 --- a/test/music_library_web/controllers/stats_controller_test.exs +++ b/test/music_library_web/controllers/stats_controller_test.exs @@ -6,12 +6,12 @@ defmodule MusicLibraryWeb.StatsControllerTest do import MusicLibrary.RecordsFixtures defp fill_collection(_) do - records = Enum.map(1..5, fn _ -> record_fixture() end) + records = Enum.map(1..99, fn _ -> record_fixture() end) %{collection: records} end defp fill_wishlist(_) do - records = Enum.map(1..30, fn _ -> record_fixture(%{purchased_at: nil}) end) + records = Enum.map(1..101, fn _ -> record_fixture(%{purchased_at: nil}) end) %{wishlist: records} end