Prevent killing tests when stopping the server
This commit is contained in:
parent
ffc322da88
commit
70168a20fa
|
@ -74,7 +74,7 @@ server.on("close", async () => {
|
|||
await events.shutdown()
|
||||
await Thread.shutdown()
|
||||
api.shutdown()
|
||||
if (!env.isTest()) {
|
||||
if (!env.isTest() && !env.isDockerisedTest()) {
|
||||
process.exit(errCode)
|
||||
}
|
||||
})
|
||||
|
|
|
@ -115,6 +115,7 @@ const environment = {
|
|||
isInThread: () => {
|
||||
return inThread
|
||||
},
|
||||
isDockerisedTest,
|
||||
}
|
||||
|
||||
// threading can cause memory issues with node-ts in development
|
||||
|
|
Loading…
Reference in New Issue