From a401a3f4c73e17cd075db94fc2ba8ab75846ab0e Mon Sep 17 00:00:00 2001 From: Jared Lucas Amistad Schulz Date: Thu, 14 Nov 2024 01:15:39 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=94fixed=20weird=20testing=20concurren?= =?UTF-8?q?cy=20bug=20thing(kinda(notreally))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/login.test.ts | 2 +- backend/tests/register.test.ts | 2 +- backend/vitest.config.integration.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/tests/login.test.ts b/backend/tests/login.test.ts index 18ace5c..1cdf964 100644 --- a/backend/tests/login.test.ts +++ b/backend/tests/login.test.ts @@ -53,7 +53,7 @@ describe("Tests", () => { const { status, body } = await request(app).post("/auth/register").send({ username: "shinjisatoo", password: "testpassword", - email: "longseason1996@gmail.com", + email: "longseason1997@gmail.com", userType: "ATTENDEE", }); diff --git a/backend/tests/register.test.ts b/backend/tests/register.test.ts index cef43b6..12e81a8 100644 --- a/backend/tests/register.test.ts +++ b/backend/tests/register.test.ts @@ -18,7 +18,7 @@ describe("Tests", () => { const { status, body } = await request(app).post("/auth/register").send({ username: "shinjisatoo", password: "testpassword", - email: "longseason1996@gmail.com", + email: "longseason1997@gmail.com", userType: "ATTENDEE", }); diff --git a/backend/vitest.config.integration.ts b/backend/vitest.config.integration.ts index 0d6261f..c18baf9 100644 --- a/backend/vitest.config.integration.ts +++ b/backend/vitest.config.integration.ts @@ -6,6 +6,7 @@ export default defineConfig({ poolOptions: { threads: { maxThreads: 1, + singleThread: true } }, setupFiles: ['./tests/helpers/setup.ts']