test: fix end after end (#1374)

This commit is contained in:
Robert Nagy 2019-08-23 12:57:32 +02:00 committed by Yiyu He
parent 061c21f336
commit f75d445535

View file

@ -236,7 +236,6 @@ describe('app.respond', () => {
ctx.status = 200; ctx.status = 200;
res.setHeader('Content-Type', 'text/html'); res.setHeader('Content-Type', 'text/html');
res.write('Hello'); res.write('Hello');
setTimeout(() => res.end('Goodbye'), 0);
}); });
app.on('error', err => { throw err; }); app.on('error', err => { throw err; });