Skip to content

Commit

Permalink
reduce lines that should never be run - fail test if they run
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Elenbaas committed Sep 14, 2016
1 parent 3ab329a commit 5d065d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var request = require('request');
describe('http-shutdown', function(done) {
it('Should shutdown with no traffic', function(done) {
var server = http.createServer(function(req, res) {
res.end('OK');
done.fail();
}).withShutdown();

server.listen(16789, function() {
Expand Down Expand Up @@ -39,8 +39,7 @@ describe('http-shutdown', function(done) {
it('Should force shutdown without waiting for outstanding traffic', function(done) {
var server = http.createServer(function(req, res) {
setTimeout(function() {
res.writeHead(200);
res.end('All done');
done.fail();
}, 500);
}).withShutdown();

Expand Down

0 comments on commit 5d065d6

Please sign in to comment.