mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-27 08:06:48 +01:00
fix e2e test
This commit is contained in:
parent
395fe7eb4b
commit
433505df48
1 changed files with 5 additions and 1 deletions
|
@ -209,8 +209,12 @@ export const db = new DataSource({
|
||||||
});
|
});
|
||||||
|
|
||||||
export async function initDb() {
|
export async function initDb() {
|
||||||
|
if (db.isInitialized) {
|
||||||
|
// nop
|
||||||
|
} else {
|
||||||
await db.connect();
|
await db.connect();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export async function resetDb() {
|
export async function resetDb() {
|
||||||
const reset = async () => {
|
const reset = async () => {
|
||||||
|
|
Loading…
Reference in a new issue