From f90cbc629415560a34da1b5bee2aa8fcae770c1f Mon Sep 17 00:00:00 2001 From: xdmal Date: Wed, 23 Mar 2022 15:45:46 +0800 Subject: [PATCH] Modify xts of process Signed-off-by: xdmal --- .../src/main/js/test/Process.test.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js index 9edcf2b3f..37909ed3c 100644 --- a/compileruntime/process_lib_standard/src/main/js/test/Process.test.js +++ b/compileruntime/process_lib_standard/src/main/js/test/Process.test.js @@ -1325,9 +1325,10 @@ describe('ChildProcessTest', function () { } sleep(6); let result2 = process.uptime() + var flag = false if ((result2 - result1) >= 6) { - let flag = true + flag = true } expect(flag).assertEqual(true) }) @@ -1345,9 +1346,10 @@ describe('ChildProcessTest', function () { } sleep(8); let result2 = process.uptime() + var flag = false if ((result2 - result1) >= 8) { - let flag = true + flag = true } expect(flag).assertEqual(true) }) @@ -1365,9 +1367,10 @@ describe('ChildProcessTest', function () { } sleep(10); let result2 = process.uptime() + var flag = false if ((result2 - result1) >= 10) { - let flag = true + flag = true } expect(flag).assertEqual(true) }) @@ -1385,9 +1388,10 @@ describe('ChildProcessTest', function () { } sleep(7); let result2 = process.uptime() + var flag = false if ((result2 - result1) >= 7) { - let flag = true + flag = true } expect(flag).assertEqual(true) }) @@ -1405,9 +1409,10 @@ describe('ChildProcessTest', function () { } sleep(11); let result2 = process.uptime() + var flag = false if ((result2 - result1) >= 11) { - let flag = true + flag = true } expect(flag).assertEqual(true) }) @@ -2419,7 +2424,7 @@ describe('ChildProcessTest', function () { if(pri == null) { var flag = new Boolean(true) - expect(flag).assertEqual(true) + expect(Boolean(flag)).assertEqual(true) } } }) -- GitLab