1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

fixed tests for cdn

This commit is contained in:
xnacly 2021-08-29 17:00:03 +02:00
parent 428c1dc2db
commit 730de53133

View File

@ -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();
});