Skip to content

Commit

Permalink
test: fix tracing test-http-client-error-rawbytes
Browse files Browse the repository at this point in the history
  • Loading branch information
santigimeno committed Sep 20, 2024
1 parent a0991bb commit 5ceead0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/addons/nsolid-tracing/test-http-client-error-rawbytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ setupNSolid(common.mustSucceed(({ addresses }) => {
// This is to check that the request `error` event is actually emitted when
// tracing is enabled.
process.on('uncaughtException', common.mustCall((err) => {
const reason = 'Content-Length can\'t be present with Transfer-Encoding';
const reason = "Transfer-Encoding can't be present with Content-Length";
assert.strictEqual(err.message, `Parse Error: ${reason}`);
assert(err.bytesParsed < response.length);
assert(err.bytesParsed >= response.indexOf('Transfer-Encoding'));
assert.strictEqual(err.code, 'HPE_UNEXPECTED_CONTENT_LENGTH');
assert.strictEqual(err.code, 'HPE_INVALID_TRANSFER_ENCODING');
assert.strictEqual(err.reason, reason);
assert.deepStrictEqual(err.rawPacket, response);

Expand Down

0 comments on commit 5ceead0

Please sign in to comment.