fix: Solve truncate deadlock problem for test suite

This commit is contained in:
Faruk AYDIN
2024-08-26 16:26:29 +03:00
parent ce6214dc0f
commit 56c08a3587

View File

@@ -8,7 +8,9 @@ global.beforeAll(async () => {
logger.silent = true;
// Remove default roles and permissions before running the test suite
await knex.raw('TRUNCATE TABLE config, roles, permissions CASCADE');
await knex.raw('TRUNCATE TABLE config CASCADE');
await knex.raw('TRUNCATE TABLE roles CASCADE');
await knex.raw('TRUNCATE TABLE permissions CASCADE');
});
global.beforeEach(async () => {