From bbb79bc46a2bd91f06c02731b84cb2b786a3e7c8 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Thu, 20 Apr 2023 22:03:49 -0400 Subject: [PATCH] fix database initialization --- packages/backend/test/e2e/endpoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/test/e2e/endpoints.ts b/packages/backend/test/e2e/endpoints.ts index 86c8bfb5a4..6898435084 100644 --- a/packages/backend/test/e2e/endpoints.ts +++ b/packages/backend/test/e2e/endpoints.ts @@ -291,7 +291,7 @@ describe('Endpoints', () => { assert.strictEqual(res.status, 200); - const connection = await initTestDb(false); + const connection = await initTestDb(true); const Users = connection.getRepository(User); const newBob = await Users.findOneByOrFail({ id: bob.id }); assert.strictEqual(newBob.followersCount, 0); @@ -353,7 +353,7 @@ describe('Endpoints', () => { assert.strictEqual(res.status, 200); - const connection = await initTestDb(false); + const connection = await initTestDb(true); const Users = connection.getRepository(User); const newBob = await Users.findOneByOrFail({ id: bob.id }); assert.strictEqual(newBob.followersCount, 0);