From 55678af57d5999b332d01ccb78ad866235603270 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 17 Nov 2021 20:31:03 +0100 Subject: [PATCH] test: fix argument order in assertion The first argument is the actual value, the second argument is the expected value. PR-URL: https://github.com/nodejs/node/pull/40842 Fixes: https://github.com/nodejs/node/issues/40277 Reviewed-By: Robert Nagy Reviewed-By: Adrian Estrada --- test/parallel/test-http2-pipe-named-pipe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-pipe-named-pipe.js b/test/parallel/test-http2-pipe-named-pipe.js index 226ae80932a65c..0ef05da1935d8c 100644 --- a/test/parallel/test-http2-pipe-named-pipe.js +++ b/test/parallel/test-http2-pipe-named-pipe.js @@ -28,8 +28,8 @@ server.on('stream', common.mustCall((stream) => { })); dest.on('finish', common.mustCall(() => { - assert.strictEqual(fs.readFileSync(loc).length, - fs.readFileSync(fn).length); + assert.strictEqual(fs.readFileSync(fn).length, + fs.readFileSync(loc).length); })); }));