actions fail invest: log test-server entry
This commit is contained in:
parent
9447bbee44
commit
3dac916640
|
@ -74,11 +74,14 @@ 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();
|
||||||
await app.close();
|
await app.close();
|
||||||
|
|
||||||
|
console.log('Nest application closed.');
|
||||||
|
|
||||||
await killTestServer();
|
await killTestServer();
|
||||||
|
|
||||||
console.log('starting application...');
|
console.log('starting application...');
|
||||||
|
@ -88,6 +91,7 @@ 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 });
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue