Skip to content

Commit

Permalink
test: addressing a regression in original goal of test case
Browse files Browse the repository at this point in the history
By prepending a response code without updating the methods order
I broke the rest. This repairs it.
  • Loading branch information
josephhackman committed Jul 8, 2020
1 parent 44d4d6d commit 96776bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-reuse-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const Countdown = require('../common/countdown');
// GETs following a 204 response with a content-encoding header failed.
// Responses without bodies and without content-length or encoding caused
// the socket to be closed.
const codes = [304, 204, 200, 200];
const methods = ['HEAD', 'HEAD', 'GET'];
const codes = [204, 200, 200, 304, 200];
const methods = ['HEAD', 'HEAD', 'GET', 'HEAD', 'GET'];

const sockets = [];
const agent = new http.Agent();
Expand Down

0 comments on commit 96776bf

Please sign in to comment.