From 072086c4d27037abae91265372cc50aef82644ee Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Mon, 15 Sep 2025 15:23:32 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/models/models.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/tests/models/models.test.js b/server/tests/models/models.test.js index ae4ebd4..597f05e 100644 --- a/server/tests/models/models.test.js +++ b/server/tests/models/models.test.js @@ -64,16 +64,17 @@ describe('Models', () => { const tenant1 = await createTestTenant({ slug: 'tenant1' }); const tenant2 = await createTestTenant({ slug: 'tenant2' }); + const timestamp = Date.now(); const user1 = await models.User.create({ username: 'testuser', - email: 'test1@example.com', + email: `test1-${timestamp}@example.com`, password_hash: 'hashedpassword', tenant_id: tenant1.id }); const user2 = await models.User.create({ username: 'testuser', - email: 'test2@example.com', + email: `test2-${timestamp}@example.com`, password_hash: 'hashedpassword', tenant_id: tenant2.id });