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

!8717 【resourceschedule_standard】【4.0Beta1】acts延迟用例可选参数用例适配

Merge pull request !8717 from smartltt/cherry-pick-1684829484
......@@ -227,10 +227,10 @@ describe("WorkSchedulerJsTest", function () {
try {
workScheduler.startWork(workInfo);
workScheduler.stopWork(workInfo, 111);
} catch ( err) {
console.info("---------------- err: " + err.code);
expect( err.code).assertEqual("401");
expect(workScheduler.stopWork(workInfo, 111)).assertNull();
done();
} catch ( err) {
console.info("WorkSchedulerJsTest007 ---------------- err: " + err.code);
};
})
......
......@@ -1297,10 +1297,10 @@ export default function WorkSchedulerMgrApiTest() {
try {
workScheduler.startWork(workInfo);
workScheduler.stopWork(workInfo, "true");
} catch (error) {
console.info("----------------error: " + error.code);
expect(error.code).assertEqual("401");
expect(workScheduler.stopWork(workInfo, "true")).assertNull();
done();
} catch (error) {
console.info("testStopWorkFun001 ----------------error: " + error.code);
}
})
......@@ -1320,11 +1320,11 @@ export default function WorkSchedulerMgrApiTest() {
};
try {
workScheduler.startWork(workInfo);
workScheduler.stopWork(workInfo, 111);
} catch (error) {
console.info("----------------error: " + error.code);
expect(error.code).assertEqual("401");
workScheduler.stopWork(workInfo, undefined);
expect(workScheduler.stopWork(workInfo, undefined)).assertNull();
done();
} catch (error) {
console.info("testStopWorkFun002 ----------------error: " + error.code);
};
})
......@@ -1345,10 +1345,10 @@ export default function WorkSchedulerMgrApiTest() {
try {
workScheduler.startWork(workInfo);
workScheduler.stopWork(workInfo, null);
} catch (error) {
console.info("----------------error: " + error.code);
expect(error.code).assertEqual("401");
expect(workScheduler.stopWork(workInfo, null)).assertNull();
done();
} catch (error) {
console.info("testStopWorkFun003 ----------------error: " + error.code);
}
})
......@@ -1369,10 +1369,10 @@ export default function WorkSchedulerMgrApiTest() {
try {
workScheduler.startWork(workInfo);
workScheduler.stopWork(workInfo);
} catch (error) {
console.info("----------------error: " + error.code);
expect(error.code).assertEqual("401");
expect(workScheduler.stopWork(workInfo)).assertNull();
done();
} catch (error) {
console.info("testStopWorkFun004 ----------------error: " + error.code);
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册