mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-24 00:16:30 +03:00
fix(server): flaky test (#4271)
This commit is contained in:
parent
bf3a3379ae
commit
4c4bb65be8
@ -19,6 +19,7 @@ test.beforeEach(async () => {
|
|||||||
const client = new PrismaClient();
|
const client = new PrismaClient();
|
||||||
await client.$connect();
|
await client.$connect();
|
||||||
await client.user.deleteMany({});
|
await client.user.deleteMany({});
|
||||||
|
await client.$disconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
test.beforeEach(async () => {
|
test.beforeEach(async () => {
|
||||||
|
@ -42,6 +42,7 @@ test.beforeEach(async () => {
|
|||||||
|
|
||||||
test.afterEach(async () => {
|
test.afterEach(async () => {
|
||||||
await app.close();
|
await app.close();
|
||||||
|
await m.close();
|
||||||
timer.restore();
|
timer.restore();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ test.beforeEach(async () => {
|
|||||||
const client = new PrismaClient();
|
const client = new PrismaClient();
|
||||||
await client.$connect();
|
await client.$connect();
|
||||||
await client.user.deleteMany({});
|
await client.user.deleteMany({});
|
||||||
|
await client.$disconnect();
|
||||||
});
|
});
|
||||||
|
|
||||||
test.beforeEach(async () => {
|
test.beforeEach(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user