enable shutdown hooks in tests
just because
This commit is contained in:
parent
0e985b77d6
commit
e111d8aa55
1 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ async function launch() {
|
|||
app = await NestFactory.createApplicationContext(MainModule, {
|
||||
logger: new NestLogger(),
|
||||
});
|
||||
app.enableShutdownHooks();
|
||||
serverService = app.get(ServerService);
|
||||
await serverService.launch();
|
||||
|
||||
|
|
@ -86,6 +87,7 @@ async function startControllerEndpoints(port = config.port + 1000) {
|
|||
app = await NestFactory.createApplicationContext(MainModule, {
|
||||
logger: new NestLogger(),
|
||||
});
|
||||
app.enableShutdownHooks();
|
||||
serverService = app.get(ServerService);
|
||||
await serverService.launch();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue