未验证 提交 e97ac3eb 编写于 作者: O openharmony_ci 提交者: Gitee

!7681 【代码上库】【xts_acts】【powermgr】【master】 power test code optimization

Merge pull request !7681 from kangqiao/master
...@@ -18,7 +18,7 @@ import { describe, it, expect } from '@ohos/hypium' ...@@ -18,7 +18,7 @@ import { describe, it, expect } from '@ohos/hypium'
const MSEC_1000 = 1000; const MSEC_1000 = 1000;
export default function ThermalUnitTest() { export default function ThermalUnitTest() {
describe('ThermalUnitTest', function () { describe('ThermalUnitTest', function () {
console.log("*************Thermal API Test Begin*************"); console.log("*************Thermal API Test Begin*************");
/* @tc.number SUB_PowerSystem_ThermalManager_JSTest_0010 /* @tc.number SUB_PowerSystem_ThermalManager_JSTest_0010
...@@ -202,19 +202,19 @@ describe('ThermalUnitTest', function () { ...@@ -202,19 +202,19 @@ describe('ThermalUnitTest', function () {
try { try {
thermal.unregisterThermalLevelCallback() thermal.unregisterThermalLevelCallback()
} catch (error) { } catch (error) {
console.info('Thermal_020:' + error); console.info('UnRegister_Thermal_Level_Callback_JSTest0140:' + error);
expect().assertFail(); expect().assertFail();
} }
try { try {
thermal.unregisterThermalLevelCallback(() => { thermal.unregisterThermalLevelCallback(() => {
expect(ture).assertTrue(); expect(true).assertTrue();
}) })
} catch (error) { } catch (error) {
console.info('Thermal_020:' + error); console.info('UnRegister_Thermal_Level_Callback_JSTest0140:' + error);
expect().assertFail(); expect().assertFail();
} }
done(); done();
}) })
}) })
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册