Comparing version 7.0.0-alpha.6 to 7.0.0-alpha.7
@@ -424,3 +424,3 @@ 'use strict' | ||
clearTimeout(timer) | ||
this._error = rootErr || err | ||
this._error = err | ||
cb(this._error) | ||
@@ -427,0 +427,0 @@ } else { |
{ | ||
"name": "avvio", | ||
"version": "7.0.0-alpha.6", | ||
"version": "7.0.0-alpha.7", | ||
"description": "Asynchronous bootstrapping of Node applications", | ||
@@ -5,0 +5,0 @@ "main": "boot.js", |
@@ -790,1 +790,25 @@ 'use strict' | ||
}) | ||
test('after 1 param swallows errors with server and timeout', (t) => { | ||
t.plan(3) | ||
const server = {} | ||
boot(server, { autostart: false, timeout: 1000 }) | ||
server.use(function first (server, opts, done) { | ||
t.pass('first called') | ||
done(new Error('kaboom')) | ||
}) | ||
server.use(function second (server, opts, done) { | ||
t.fail('We should not be here') | ||
}) | ||
server.after(function (err) { | ||
t.ok(err) | ||
}) | ||
server.ready(function (err) { | ||
t.error(err) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129298
4392