mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
Ensure build tests pass the correct exit code when their time limit is hit.
Former-commit-id: ead1bcc0448a639d5310ceb63e2efcf81e64a0c3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 0.6
|
||||
- 0.8
|
||||
- 0.9
|
||||
git:
|
||||
depth: 1
|
||||
branches:
|
||||
|
||||
@@ -1214,7 +1214,9 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
if (isFinite(timeLimit)) {
|
||||
setTimeout(process.exit, timeLimit * 6e4);
|
||||
setTimeout(function() {
|
||||
process.exit(QUnit.config.stats.bad ? 1 : 0);
|
||||
}, timeLimit * 6e4);
|
||||
}
|
||||
// explicitly call `QUnit.start()` for Narwhal, Node.js, Rhino, and RingoJS
|
||||
if (!global.document) {
|
||||
|
||||
Reference in New Issue
Block a user