提交 d5363772 编写于 作者: L logic42

change power testcase on release3.1

Signed-off-by: Nlogic42 <wanglong108@huawei.com>
上级 14cd1a22
......@@ -55,6 +55,12 @@
"autoDesignWidth": false
}
}
],
"reqPermissions": [
{
"name": "ohos.permission.RUNNING_LOCK",
"reason": "use ohos.permission.RUNNING_LOCK"
}
]
}
}
\ No newline at end of file
......@@ -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) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册