diff --git a/test/test.js b/test/test.js index f837ba5..f610770 100644 --- a/test/test.js +++ b/test/test.js @@ -303,9 +303,9 @@ describe('finalhandler(req, res)', function () { }) it('should handle HEAD', function (done) { - request(createServer()) + request(createServer(createError('boom!'))) .head('/foo') - .expect(404) + .expect(500) .expect(shouldNotHaveBody()) .end(done) })