diff options
author | xnacly <matteogropp@protonmail.com> | 2021-08-29 17:00:03 +0200 |
---|---|---|
committer | xnacly <matteogropp@protonmail.com> | 2021-08-29 17:00:03 +0200 |
commit | 641af37d5a084c80feb76d56eabdbc23db0a0c9f (patch) | |
tree | b1acdbb5a39cb37483d49f71d1d1ecc756136a83 /cdn | |
parent | Merge branch 'typeorm' of https://github.com/fosscord/fosscord-api into typeorm (diff) | |
download | server-641af37d5a084c80feb76d56eabdbc23db0a0c9f.tar.xz |
fixed tests for cdn
Diffstat (limited to 'cdn')
-rw-r--r-- | cdn/tests/server.test.js | 3 |
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(); }); |