diff --git a/tests/RLS/TableManagerTest.php b/tests/RLS/TableManagerTest.php index 87f207c49..bbd400a7a 100644 --- a/tests/RLS/TableManagerTest.php +++ b/tests/RLS/TableManagerTest.php @@ -543,7 +543,10 @@ // Drop all tables created in beforeEach DB::statement("DROP TABLE authors, categories, posts, comments, reactions, articles;"); - DB::statement("DROP OWNED BY administrator;"); + try { + DB::statement("DROP OWNED BY administrator;"); + } catch (\Throwable $th) {} + DB::statement("DROP USER IF EXISTS administrator;"); // Create new central user (without superuser and bypassrls privileges)