diff --git a/test/mv_web/live/group_live/index_test.exs b/test/mv_web/live/group_live/index_test.exs index 5e15cbc..adf40fe 100644 --- a/test/mv_web/live/group_live/index_test.exs +++ b/test/mv_web/live/group_live/index_test.exs @@ -184,9 +184,7 @@ 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 1dfe9a0..e59d676 100644 --- a/test/mv_web/live/group_live/show_test.exs +++ b/test/mv_web/live/group_live/show_test.exs @@ -257,9 +257,7 @@ 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