Skip to content

Commit b80007b

Browse files
committed
Tests: only stop if running (in case of error when launching app)
1 parent ab0c93d commit b80007b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/environment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ class TestEnvironment extends NodeEnvironment {
3333
}
3434

3535
async teardown() {
36-
await this.global.__APP__.stop();
36+
if (this.global.__APP__.isRunning()) {
37+
await this.global.__APP__.stop();
38+
}
3739
await super.teardown();
3840
}
3941

0 commit comments

Comments
 (0)