summary refs log tree commit diff
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
commit730de5313359d23582937d70312c692ef99b3536 (patch)
tree2db01933b956d0cb8b7aa0c121e744fc41ddba2d
parentMerge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff)
downloadserver-730de5313359d23582937d70312c692ef99b3536.tar.xz
fixed tests for 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();
 });