diff --git a/test/mv_web/live/group_live/index_test.exs b/test/mv_web/live/group_live/index_test.exs index adf40fe..5e15cbc 100644 --- a/test/mv_web/live/group_live/index_test.exs +++ b/test/mv_web/live/group_live/index_test.exs @@ -184,7 +184,9 @@ defmodule MvWeb.GroupLive.IndexTest do assert html =~ "2" or html =~ gettext("Members") or html =~ "Mitglieder" # Log actual query count for monitoring - IO.puts("\n[PERF] GroupLive.Index 'member count is loaded efficiently': #{final_count} queries") + IO.puts( + "\n[PERF] GroupLive.Index 'member count is loaded efficiently': #{final_count} queries" + ) # Verify query count is reasonable (member count should be calculated efficiently) # Expected: 1 query for groups + 1 batch query for member counts + LiveView setup queries diff --git a/test/mv_web/live/group_live/show_test.exs b/test/mv_web/live/group_live/show_test.exs index e59d676..1dfe9a0 100644 --- a/test/mv_web/live/group_live/show_test.exs +++ b/test/mv_web/live/group_live/show_test.exs @@ -257,7 +257,9 @@ defmodule MvWeb.GroupLive.ShowTest do end) # Log actual query count for monitoring - IO.puts("\n[PERF] GroupLive.Show 'member list is loaded efficiently': #{final_count} queries") + IO.puts( + "\n[PERF] GroupLive.Show 'member list is loaded efficiently': #{final_count} queries" + ) # Verify query count is reasonable (should avoid N+1 queries) # Expected: 1 query for group lookup + 1 query for members (with preload) + member_count aggregate