Tests: only stop if running (in case of error when launching app)

This commit is contained in:
TC
2020-05-03 11:44:00 +02:00
parent ab0c93d443
commit b80007bbd5

View File

@ -33,7 +33,9 @@ class TestEnvironment extends NodeEnvironment {
}
async teardown() {
if (this.global.__APP__.isRunning()) {
await this.global.__APP__.stop();
}
await super.teardown();
}