mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +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
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 0.6
|
- 0.6
|
||||||
- 0.8
|
- 0.9
|
||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 1
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
@@ -1214,7 +1214,9 @@
|
|||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
if (isFinite(timeLimit)) {
|
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
|
// explicitly call `QUnit.start()` for Narwhal, Node.js, Rhino, and RingoJS
|
||||||
if (!global.document) {
|
if (!global.document) {
|
||||||
|
|||||||
Reference in New Issue
Block a user