fix e2e test
This commit is contained in:
parent
395fe7eb4b
commit
433505df48
|
@ -209,7 +209,11 @@ export const db = new DataSource({
|
||||||
});
|
});
|
||||||
|
|
||||||
export async function initDb() {
|
export async function initDb() {
|
||||||
await db.connect();
|
if (db.isInitialized) {
|
||||||
|
// nop
|
||||||
|
} else {
|
||||||
|
await db.connect();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function resetDb() {
|
export async function resetDb() {
|
||||||
|
|
Loading…
Reference in New Issue