Skip to content

Commit 96776bf

Browse files
committed
test: addressing a regression in original goal of test case
By prepending a response code without updating the methods order I broke the rest. This repairs it.
1 parent 44d4d6d commit 96776bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-http-reuse-socket.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const Countdown = require('../common/countdown');
88
// GETs following a 204 response with a content-encoding header failed.
99
// Responses without bodies and without content-length or encoding caused
1010
// the socket to be closed.
11-
const codes = [304, 204, 200, 200];
12-
const methods = ['HEAD', 'HEAD', 'GET'];
11+
const codes = [204, 200, 200, 304, 200];
12+
const methods = ['HEAD', 'HEAD', 'GET', 'HEAD', 'GET'];
1313

1414
const sockets = [];
1515
const agent = new http.Agent();

0 commit comments

Comments
 (0)