mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
add library teardown
This commit is contained in:
@@ -48,6 +48,9 @@ export const db = {
|
||||
if (deleteUsers) {
|
||||
await em.query(`DELETE FROM "users" CASCADE;`);
|
||||
}
|
||||
|
||||
// Release all locks
|
||||
await em.query('SELECT pg_advisory_unlock_all()');
|
||||
});
|
||||
},
|
||||
disconnect: async () => {
|
||||
@@ -124,9 +127,6 @@ export const testApp = {
|
||||
},
|
||||
reset: async (options?: ResetOptions) => {
|
||||
await db.reset(options);
|
||||
await app.get(AppService).init();
|
||||
|
||||
await app.get(MicroAppService).init();
|
||||
},
|
||||
get: (member: any) => app.get(member),
|
||||
teardown: async () => {
|
||||
|
||||
Reference in New Issue
Block a user