summary refs log tree commit diff
path: root/cdn
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-29 17:00:03 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-29 17:00:03 +0200
commit641af37d5a084c80feb76d56eabdbc23db0a0c9f (patch)
treeb1acdbb5a39cb37483d49f71d1d1ecc756136a83 /cdn
parentMerge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff)
downloadserver-641af37d5a084c80feb76d56eabdbc23db0a0c9f.tar.xz
fixed tests for cdn
Diffstat (limited to 'cdn')
-rw-r--r--cdn/tests/server.test.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/cdn/tests/server.test.js b/cdn/tests/server.test.js
index 77d2b949..13046034 100644
--- a/cdn/tests/server.test.js
+++ b/cdn/tests/server.test.js
@@ -17,7 +17,7 @@ if (process.env.STORAGE_PROVIDER === "file") {
 }
 
 const { CDNServer } = require("../dist/Server");
-const { db, Config } = require("@fosscord/util");
+const { Config } = require("@fosscord/util");
 const supertest = require("supertest");
 const request = supertest("http://localhost:3003");
 const server = new CDNServer({ port: Number(process.env.PORT) || 3003 });
@@ -28,7 +28,6 @@ beforeAll(async () => {
 });
 
 afterAll(() => {
-	db.close();
 	return server.stop();
 });