fix tests with async true

This commit is contained in:
carla 2025-12-23 16:14:58 +01:00
parent b6bc182510
commit def399122c
2 changed files with 4 additions and 2 deletions

View file

@ -10,7 +10,8 @@ defmodule MvWeb.MemberLive.IndexFieldVisibilityTest do
- Integration with member list display
- Custom fields visibility
"""
use MvWeb.ConnCase, async: true
# async: false to prevent PostgreSQL deadlocks when creating members and custom fields
use MvWeb.ConnCase, async: false
import Phoenix.LiveViewTest
require Ash.Query

View file

@ -1,5 +1,6 @@
defmodule MvWeb.UserLive.FormTest do
use MvWeb.ConnCase, async: true
# async: false to prevent PostgreSQL deadlocks when creating members and users
use MvWeb.ConnCase, async: false
import Phoenix.LiveViewTest
# Helper to setup authenticated connection and live view