From 682319f4491e774cde129203875b71d239228a4c Mon Sep 17 00:00:00 2001 From: Evgenii Shchepotev Date: Sun, 26 May 2019 17:54:40 +0300 Subject: [PATCH] test: switch assertEqual arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/27910 Reviewed-By: Ujjwal Sharma Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Gireesh Punathil Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- test/sequential/test-inspector-debug-end.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sequential/test-inspector-debug-end.js b/test/sequential/test-inspector-debug-end.js index d73e7dccc1a8fe..4c775981f1f3c9 100644 --- a/test/sequential/test-inspector-debug-end.js +++ b/test/sequential/test-inspector-debug-end.js @@ -10,14 +10,14 @@ async function testNoServerNoCrash() { const instance = new NodeInstance([], `process._debugEnd(); process.exit(42);`); - strictEqual(42, (await instance.expectShutdown()).exitCode); + strictEqual((await instance.expectShutdown()).exitCode, 42); } async function testNoSessionNoCrash() { console.log('Test there\'s no crash stopping server without connecting'); const instance = new NodeInstance('--inspect=0', 'process._debugEnd();process.exit(42);'); - strictEqual(42, (await instance.expectShutdown()).exitCode); + strictEqual((await instance.expectShutdown()).exitCode, 42); } async function testSessionNoCrash() { @@ -33,7 +33,7 @@ async function testSessionNoCrash() { const session = await instance.connectInspectorSession(); await session.send({ 'method': 'Runtime.runIfWaitingForDebugger' }); await session.waitForServerDisconnect(); - strictEqual(42, (await instance.expectShutdown()).exitCode); + strictEqual((await instance.expectShutdown()).exitCode, 42); } async function runTest() {