Skip to content

Commit 5d065d6

Browse files
author
Lee Elenbaas
committed
reduce lines that should never be run - fail test if they run
1 parent 3ab329a commit 5d065d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var request = require('request');
66
describe('http-shutdown', function(done) {
77
it('Should shutdown with no traffic', function(done) {
88
var server = http.createServer(function(req, res) {
9-
res.end('OK');
9+
done.fail();
1010
}).withShutdown();
1111

1212
server.listen(16789, function() {
@@ -39,8 +39,7 @@ describe('http-shutdown', function(done) {
3939
it('Should force shutdown without waiting for outstanding traffic', function(done) {
4040
var server = http.createServer(function(req, res) {
4141
setTimeout(function() {
42-
res.writeHead(200);
43-
res.end('All done');
42+
done.fail();
4443
}, 500);
4544
}).withShutdown();
4645

0 commit comments

Comments
 (0)