fixed tests for cdn
This commit is contained in:
		
							parent
							
								
									16d46501a5
								
							
						
					
					
						commit
						641af37d5a
					
				| @ -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(); | ||||
| }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 xnacly
						xnacly