mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 09:58:11 +03:00
Try to optimise initial connection speed in tests.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import { monkDB } from "external/mongo/db";
|
||||
import { SetIndexesForDB } from "./resets";
|
||||
|
||||
SetIndexesForDB().then(() => process.exit(0));
|
||||
SetIndexesForDB()
|
||||
.then(monkDB.close)
|
||||
.then(() => process.exit(0));
|
||||
|
||||
@@ -3,6 +3,8 @@ import path from "path";
|
||||
import t from "tap";
|
||||
import { CloseAllConnections } from "./close-connections";
|
||||
|
||||
import "external/mongo/db";
|
||||
|
||||
const files = glob.sync(path.join(__dirname, "../../", "**/*.test.ts"));
|
||||
|
||||
process.env.NODE_PATH = path.join(__dirname, "../../");
|
||||
|
||||
Reference in New Issue
Block a user