remove console.log
This commit is contained in:
parent
634f16f6b0
commit
be688922c8
|
@ -74,13 +74,10 @@ async function startControllerEndpoints(port = config.port + 1000) {
|
||||||
});
|
});
|
||||||
|
|
||||||
fastify.post<{ Body: { key?: string, value?: string } }>('/env-reset', async (req, res) => {
|
fastify.post<{ Body: { key?: string, value?: string } }>('/env-reset', async (req, res) => {
|
||||||
console.log('env-reset');
|
|
||||||
process.env = JSON.parse(originEnv);
|
process.env = JSON.parse(originEnv);
|
||||||
|
|
||||||
await serverService.dispose();
|
await serverService.dispose();
|
||||||
console.log('ServerService application closed.');
|
|
||||||
await app.close();
|
await app.close();
|
||||||
console.log('MainModule application closed.');
|
|
||||||
|
|
||||||
await killTestServer();
|
await killTestServer();
|
||||||
|
|
||||||
|
@ -91,7 +88,6 @@ async function startControllerEndpoints(port = config.port + 1000) {
|
||||||
});
|
});
|
||||||
serverService = app.get(ServerService);
|
serverService = app.get(ServerService);
|
||||||
await serverService.launch();
|
await serverService.launch();
|
||||||
console.log('application launched.');
|
|
||||||
|
|
||||||
res.code(200).send({ success: true });
|
res.code(200).send({ success: true });
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,7 +7,5 @@ import { initTestDb, sendEnvResetRequest } from './utils.js';
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await initTestDb(false);
|
await initTestDb(false);
|
||||||
console.log('Test database initialized.');
|
|
||||||
await sendEnvResetRequest();
|
await sendEnvResetRequest();
|
||||||
console.log('Environment reset completed.');
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue