diff --git a/tasks/gulp-tests.js b/tasks/gulp-tests.js index 3c84fac82d..f6ce872271 100644 --- a/tasks/gulp-tests.js +++ b/tasks/gulp-tests.js @@ -54,7 +54,7 @@ gulp.task('test:common', ['test:prepare:build'], (cb) => { fail: testCount(stderr, /(\d+) failing/), pend: testCount(stdout, /(\d+) pending/) }); - cb(); + cb(err); } ); pipe(runner); @@ -71,7 +71,7 @@ gulp.task('test:api', ['test:prepare:mongo'], (cb) => { fail: testCount(stderr, /(\d+) failing/), pend: testCount(stdout, /(\d+) pending/) }); - cb(); + cb(err); } ); pipe(runner); @@ -87,7 +87,7 @@ gulp.task('test:karma', ['test:prepare:build'], (cb) => { fail: testCount(stdout, /(\d+) tests failed/), pend: testCount(stdout, /(\d+) tests skipped/) }); - cb(); + cb(err); } ); pipe(runner); @@ -118,7 +118,7 @@ gulp.task('test:e2e', ['test:prepare'], (cb) => { pend: 0 }); support.forEach(kill); - cb(); + cb(err); } ); pipe(runner); diff --git a/test/common/algos.mocha.coffee b/test/common/algos.mocha.coffee index 696d4b78f9..6128ba02e3 100644 --- a/test/common/algos.mocha.coffee +++ b/test/common/algos.mocha.coffee @@ -992,7 +992,7 @@ describe 'Helper', -> it 'counts mounts', -> mounts = {} expect(shared.countMounts(null, mounts)).to.eql 0 - expect(shared.countMounts(1, mounts)).to.eql 1 + expect(shared.countMounts(1, mounts)).to.eql 5 mounts = { "Dragon-Red": true, "Wolf-Base": true } expect(shared.countMounts(null, mounts)).to.eql 2