Skip to content

Commit f520eee

Browse files
tomas-pecserkenklayman
authored andcommitted
fix(testWithSpectron): only stop spectron app if running, fixes #543 (#544)
1 parent 3e74f07 commit f520eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/testWithSpectron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module.exports = (options = {}) =>
6868
child.stdin.write('close')
6969
child.kill()
7070
// Close spectron
71-
if (app) return app.stop()
71+
if (app && app.isRunning()) return app.stop()
7272
}
7373
})
7474
}

0 commit comments

Comments
 (0)