From b8541f3ac149446238dc07432116fafc23a48a82 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Fri, 2 Feb 2024 13:03:55 +0200 Subject: [PATCH] fix(rbac): set up higher jest timeout for rbac db tests (#1163) Signed-off-by: Oleksandr Andriienko --- .../rbac-backend/src/database/policy-metadata-storage.test.ts | 2 ++ plugins/rbac-backend/src/database/role-metadata.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/rbac-backend/src/database/policy-metadata-storage.test.ts b/plugins/rbac-backend/src/database/policy-metadata-storage.test.ts index 96ed5e6bb0..2b66dd6d3b 100644 --- a/plugins/rbac-backend/src/database/policy-metadata-storage.test.ts +++ b/plugins/rbac-backend/src/database/policy-metadata-storage.test.ts @@ -14,6 +14,8 @@ import { POLICY_METADATA_TABLE, } from './policy-metadata-storage'; +jest.setTimeout(60000); + describe('policy-metadata-db-table', () => { const policy = ['role:default/team-a', 'catalog-entity', 'read', 'allow']; const policyStr = policyToString(policy); diff --git a/plugins/rbac-backend/src/database/role-metadata.test.ts b/plugins/rbac-backend/src/database/role-metadata.test.ts index eac6a6247a..494b42a512 100644 --- a/plugins/rbac-backend/src/database/role-metadata.test.ts +++ b/plugins/rbac-backend/src/database/role-metadata.test.ts @@ -11,6 +11,8 @@ import { RoleMetadataDao, } from './role-metadata'; +jest.setTimeout(60000); + describe('role-metadata-db-table', () => { const databases = TestDatabases.create({ ids: ['POSTGRES_13', 'SQLITE_3'],