From 6ffe1156ca434e4b41d66f79b5a541b9373a6746 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Mon, 15 Sep 2025 15:20:39 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/setup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/tests/setup.js b/server/tests/setup.js index 5e9a41e..38b70e5 100644 --- a/server/tests/setup.js +++ b/server/tests/setup.js @@ -222,10 +222,11 @@ async function createTestDetection(detectionData = {}) { async function createTestTenant(tenantData = {}) { const { Tenant } = models; + const timestamp = Date.now(); const defaultTenantData = { name: 'Test Tenant', - slug: 'test-tenant-' + Date.now(), - domain: 'test.example.com', + slug: 'test-tenant-' + timestamp, + domain: 'test-' + timestamp + '.example.com', is_active: true, ...tenantData };