From abe3e2921fee36b1e87631b500c950101bc9c4e8 Mon Sep 17 00:00:00 2001 From: adrinr Date: Tue, 31 Jan 2023 22:50:52 +0000 Subject: [PATCH] Race conditions --- .../src/api/routes/tests/{query.spec.js => query.seq.spec.js} | 0 packages/server/src/db/tests/linkController.spec.js | 1 + packages/worker/src/tests/TestConfiguration.ts | 1 + 3 files changed, 2 insertions(+) rename packages/server/src/api/routes/tests/{query.spec.js => query.seq.spec.js} (100%) diff --git a/packages/server/src/api/routes/tests/query.spec.js b/packages/server/src/api/routes/tests/query.seq.spec.js similarity index 100% rename from packages/server/src/api/routes/tests/query.spec.js rename to packages/server/src/api/routes/tests/query.seq.spec.js diff --git a/packages/server/src/db/tests/linkController.spec.js b/packages/server/src/db/tests/linkController.spec.js index 919a104ad2..13f7b34381 100644 --- a/packages/server/src/db/tests/linkController.spec.js +++ b/packages/server/src/db/tests/linkController.spec.js @@ -10,6 +10,7 @@ describe("test the link controller", () => { let table1, table2, appId beforeEach(async () => { + config.modeCloud() const app = await config.init() appId = app.appId const { _id } = await config.createTable() diff --git a/packages/worker/src/tests/TestConfiguration.ts b/packages/worker/src/tests/TestConfiguration.ts index 11ec56c408..74fb2dd477 100644 --- a/packages/worker/src/tests/TestConfiguration.ts +++ b/packages/worker/src/tests/TestConfiguration.ts @@ -147,6 +147,7 @@ class TestConfiguration { await this.createSession(this.tenant1User!) }) } catch (e: any) { + console.log(e) throw new Error(e.message) } }