From c700857aea46eca1dcefa48d3313718eed0be746 Mon Sep 17 00:00:00 2001 From: lidan1004 Date: Fri, 10 Jun 2022 16:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E4=BE=8B=E8=B6=85?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lidan1004 --- powermgr/battery_manager/Test.json | 4 ++-- .../src/main/js/default/test/thermal_unittest.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/powermgr/battery_manager/Test.json b/powermgr/battery_manager/Test.json index fa78e7e02..016fbda41 100755 --- a/powermgr/battery_manager/Test.json +++ b/powermgr/battery_manager/Test.json @@ -2,9 +2,9 @@ "description": "Configuration for powermgr battery Tests", "driver": { "type": "JSUnitTest", - "test-timeout": "60000", + "test-timeout": "90000", "package": "com.example.mybatteryapp", - "shell-timeout": "60000" + "shell-timeout": "90000" }, "kits": [ { diff --git a/powermgr/thermal_manager/src/main/js/default/test/thermal_unittest.test.js b/powermgr/thermal_manager/src/main/js/default/test/thermal_unittest.test.js index 4b7459c15..4e748ed61 100644 --- a/powermgr/thermal_manager/src/main/js/default/test/thermal_unittest.test.js +++ b/powermgr/thermal_manager/src/main/js/default/test/thermal_unittest.test.js @@ -37,7 +37,7 @@ function test14() { setTimeout(() => { let level = thermal.getThermalLevel(); console.info("level is: " + level); - expect(level == -1).assertTrue(); + expect(level >= 0 && level <= 6).assertTrue(); resolve(); done(); }, MSEC_1000 * 4); @@ -54,7 +54,7 @@ function test15() { it('Thermal_015', 0, async function (done) { thermal.subscribeThermalLevel((level) => { console.info("level is: " + level); - expect(level == -1).assertTrue(); + expect(level >= 0 && level <= 6).assertTrue(); done(); }) await new Promise((resolve, reject) => { -- GitLab