mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
fix many test problems (#1677)
* fix many test problems - adds [stoppable](https://npm.im/stoppable) to force-stop net & http servers - upgrades to latest mocha - much cleanup of servers - some removal of useless code Signed-off-by: Christopher Hiller <boneskull@boneskull.com> * increase wait time to hack at race condition * PoC with fork of stoppable Signed-off-by: Christopher Hiller <boneskull@boneskull.com> * fix custom stoppable url for newer npm * make travis go faster; attempt to avoid npm troubles * fix coveralls executable path * add extra time for flake to trigger spec Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
This commit is contained in:
committed by
Nick O'Leary
parent
25345302e8
commit
e1195ac00a
@@ -135,11 +135,13 @@ describe('range Node', function() {
|
||||
var sinon = require('sinon');
|
||||
sinon.stub(rangeNode1, 'log', function(log) {
|
||||
if (log.indexOf("notnumber") > -1) {
|
||||
rangeNode1.log.restore();
|
||||
done();
|
||||
} else {
|
||||
try {
|
||||
should.fail(null, null, "Non-number inputs should be reported!");
|
||||
} catch (err) {
|
||||
rangeNode1.log.restore();
|
||||
done(err);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user