From 387c5ce1ae4ef68d757300081cb2cb51848c3328 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 14 Jan 2025 15:22:17 +0100 Subject: [PATCH] Remove try/catch --- tests/RLS/TableManagerTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/RLS/TableManagerTest.php b/tests/RLS/TableManagerTest.php index ee3f6cf4..87f207c4 100644 --- a/tests/RLS/TableManagerTest.php +++ b/tests/RLS/TableManagerTest.php @@ -543,11 +543,8 @@ test('user without BYPASSRLS can only query owned tables if forceRls is true', f // Drop all tables created in beforeEach DB::statement("DROP TABLE authors, categories, posts, comments, reactions, articles;"); - try { - DB::statement("DROP OWNED BY administrator;"); - DB::statement("DROP USER IF EXISTS administrator;"); - } catch (\Throwable $th) { - } + DB::statement("DROP OWNED BY administrator;"); + DB::statement("DROP USER IF EXISTS administrator;"); // Create new central user (without superuser and bypassrls privileges) DB::statement("CREATE USER administrator WITH ENCRYPTED PASSWORD 'password'");