mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Ensure tests exit in Travis (#9288)
refs https://github.com/mochajs/mocha/issues/3044
- there was a breaking change in mocha, which i have mentioned [here](ee7710ba68
), but i thought it's not required, but it is
- it can happen that with mocha 4.x, travis does not complete a test run, because the process does not exit (maybe the test env does not shutdown everything completely)
- but it's hard to figure out why that happens, so we simply add `--exit` (this reflects the mocha 3.x behaviour)
- i've tested that failed tests are still counted and the build results in a red state
This commit is contained in:
parent
d58f7ae22b
commit
611e8b5634
@ -132,7 +132,8 @@ var config = require('./core/server/config'),
|
||||
reporter: grunt.option('reporter') || 'spec',
|
||||
timeout: '30000',
|
||||
save: grunt.option('reporter-output'),
|
||||
require: ['core/server/overrides']
|
||||
require: ['core/server/overrides'],
|
||||
exit: true
|
||||
},
|
||||
|
||||
// #### All Unit tests
|
||||
|
Loading…
Reference in New Issue
Block a user