mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
tests(test-setup): ensure shutdown hooks get run
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
4746c30c26
commit
bbf7209c27
3 changed files with 3 additions and 7 deletions
|
@ -89,6 +89,7 @@ export class TestSetup {
|
|||
}
|
||||
if (connectionOptions.type === 'sqlite') {
|
||||
// Bail out early, as SQLite runs from memory anyway
|
||||
await this.app.close();
|
||||
return;
|
||||
}
|
||||
if (appConnection.isConnected) {
|
||||
|
@ -106,6 +107,7 @@ export class TestSetup {
|
|||
await connection.close();
|
||||
}
|
||||
}
|
||||
await this.app.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue