revert 08c32dce7b
Some checks reported errors
continuous-integration/drone/push Build was killed

revert fix: failing tests from full suite
This commit is contained in:
simon 2026-03-13 19:23:59 +01:00
parent 08c32dce7b
commit 81fb794c76
5 changed files with 11 additions and 14 deletions

View file

@ -144,8 +144,8 @@ defmodule MvWeb.GroupLive.IndexTest do
# Verify query count is reasonable (should avoid N+1 queries)
# Expected: 1 query for groups list + 1 batch query for member counts + LiveView setup queries
# Allow overhead for authorization, LiveView setup, and other initialization queries
assert final_count <= 13,
"Expected max 13 queries (groups list + batch member counts + LiveView setup + auth), got #{final_count}. This suggests N+1 query problem."
assert final_count <= 12,
"Expected max 12 queries (groups list + batch member counts + LiveView setup + auth), got #{final_count}. This suggests N+1 query problem."
end
test "member count is loaded efficiently via calculation", %{conn: conn} do
@ -185,8 +185,8 @@ defmodule MvWeb.GroupLive.IndexTest do
# 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
# Allow overhead for authorization, LiveView setup, and other initialization queries
assert final_count <= 13,
"Expected max 13 queries (groups + batch member counts + LiveView setup + auth), got #{final_count}. This suggests inefficient member count calculation."
assert final_count <= 12,
"Expected max 12 queries (groups + batch member counts + LiveView setup + auth), got #{final_count}. This suggests inefficient member count calculation."
end
end
end