From 3b9522a421d44a9119f57d0558feafa8173f17bd Mon Sep 17 00:00:00 2001 From: Derek Date: Fri, 12 Oct 2018 11:29:32 -0700 Subject: [PATCH] test(https-eof-for-eom): complete patch --- test/parallel/test-https-eof-for-eom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-https-eof-for-eom.js b/test/parallel/test-https-eof-for-eom.js index 2e42680c7d6d5f..b2f178654f6de9 100644 --- a/test/parallel/test-https-eof-for-eom.js +++ b/test/parallel/test-https-eof-for-eom.js @@ -75,7 +75,7 @@ server.listen(0, common.mustCall(function() { server.close(); console.log('3) Client got response headers.'); - assert.strictEqual('gws', res.headers.server); + assert.strictEqual(res.headers.server, 'gws'); res.setEncoding('utf8'); res.on('data', function(s) { @@ -84,7 +84,7 @@ server.listen(0, common.mustCall(function() { res.on('end', common.mustCall(function() { console.log('5) Client got "end" event.'); - assert.strictEqual('hello world\nhello world\n', bodyBuffer); + assert.strictEqual(bodyBuffer, 'hello world\nhello world\n'); })); })); }));