From 807867bafb57cbe44e9228cd8e745795f925b89d Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Wed, 17 Nov 2021 10:31:29 +0800 Subject: [PATCH] fix bugs for watch Signed-off-by: xionglei6 --- .../src/main/js/default/test/ParametersJsUnit.test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/startup/startup_standard/src/main/js/default/test/ParametersJsUnit.test.js b/startup/startup_standard/src/main/js/default/test/ParametersJsUnit.test.js index f9fce5b07..820bed7a6 100644 --- a/startup/startup_standard/src/main/js/default/test/ParametersJsUnit.test.js +++ b/startup/startup_standard/src/main/js/default/test/ParametersJsUnit.test.js @@ -1316,6 +1316,7 @@ describe('SystemParameterTest', function () { console.info("system_parameter_test_0819 callback value: " + value); }); console.info("system_parameter_test_0819 code: " + code); + } else { ret = true; } } catch (e) { @@ -1391,8 +1392,10 @@ describe('SystemParameterTest', function () { ret = false; console.info("input error: " + e); } - expect(ret).assertTrue(); - done(); + setTimeout(function(){ + expect(ret).assertTrue(); + done(); + }, '1000'); console.info('system_parameter_test_0821 end '); }) -- GitLab