We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab329a commit 5d065d6Copy full SHA for 5d065d6
test.js
@@ -6,7 +6,7 @@ var request = require('request');
6
describe('http-shutdown', function(done) {
7
it('Should shutdown with no traffic', function(done) {
8
var server = http.createServer(function(req, res) {
9
- res.end('OK');
+ done.fail();
10
}).withShutdown();
11
12
server.listen(16789, function() {
@@ -39,8 +39,7 @@ describe('http-shutdown', function(done) {
39
it('Should force shutdown without waiting for outstanding traffic', function(done) {
40
41
setTimeout(function() {
42
- res.writeHead(200);
43
- res.end('All done');
44
}, 500);
45
46
0 commit comments