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

!9387 修复ActsAACommandTest概率性失败问题

Merge pull request !9387 from yangzk/master
...@@ -27,11 +27,10 @@ export default function abilityTest() { ...@@ -27,11 +27,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_0100', 0, async function (done) { it('ACTS_AACommand_finish_01_0100', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146ACTS_AACommand_finish_01_0100' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146ACTS_AACommand_finish_01_0100'
globalThis.abilityDelegator.finishTest(msg, 1,()=>{ globalThis.abilityDelegator.finishTest(msg, 1,()=>{
console.log("ACTS_AACommand_finish_01_0100 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_0100 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -85,10 +84,10 @@ export default function abilityTest() { ...@@ -85,10 +84,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_0400', 0, async function (done) { it('ACTS_AACommand_finish_01_0400', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, Number.MAX_VALUE,()=>{ globalThis.abilityDelegator.finishTest(msg, Number.MAX_VALUE,()=>{
console.log("ACTS_AACommand_finish_01_0400 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_0400 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -100,10 +99,10 @@ export default function abilityTest() { ...@@ -100,10 +99,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_0500', 0, async function (done) { it('ACTS_AACommand_finish_01_0500', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE,()=>{ globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE,()=>{
console.log("ACTS_AACommand_finish_01_0500 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_0500 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -115,10 +114,10 @@ export default function abilityTest() { ...@@ -115,10 +114,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_0600', 0, async function (done) { it('ACTS_AACommand_finish_01_0600', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, (Number.MIN_VALUE+1),()=>{ globalThis.abilityDelegator.finishTest(msg, (Number.MIN_VALUE+1),()=>{
console.log("ACTS_AACommand_finish_01_0600 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_0600 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -130,10 +129,10 @@ export default function abilityTest() { ...@@ -130,10 +129,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_0700', 0, async function (done) { it('ACTS_AACommand_finish_01_0700', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, (Number.MIN_VALUE-1),()=>{ globalThis.abilityDelegator.finishTest(msg, (Number.MIN_VALUE-1),()=>{
console.log("ACTS_AACommand_finish_01_0700 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_0700 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -162,11 +161,10 @@ export default function abilityTest() { ...@@ -162,11 +161,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_0900', 0, async function (done) { it('ACTS_AACommand_finish_01_0900', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, 1).then(() => { globalThis.abilityDelegator.finishTest(msg, 1).then(() => {
console.log("ACTS_AACommand_finish_01_0900 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_0900 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -202,10 +200,10 @@ export default function abilityTest() { ...@@ -202,10 +200,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_1200', 0, async function (done) { it('ACTS_AACommand_finish_01_1200', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, Number.MAX_VALUE).then(()=>{ globalThis.abilityDelegator.finishTest(msg, Number.MAX_VALUE).then(()=>{
console.log("ACTS_AACommand_finish_01_1200 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_1200 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -217,7 +215,6 @@ export default function abilityTest() { ...@@ -217,7 +215,6 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_1300', 0, async function (done) { it('ACTS_AACommand_finish_01_1300', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE).then(()=>{ globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE).then(()=>{
console.log("ACTS_AACommand_finish_01_1300 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_1300 finishTest test end ========> callback " )
...@@ -233,10 +230,10 @@ export default function abilityTest() { ...@@ -233,10 +230,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_1400', 0, async function (done) { it('ACTS_AACommand_finish_01_1400', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE+1).then(()=>{ globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE+1).then(()=>{
console.log("ACTS_AACommand_finish_01_1400 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_1400 finishTest test end ========> callback " )
done()
}) })
}) })
...@@ -248,10 +245,10 @@ export default function abilityTest() { ...@@ -248,10 +245,10 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_1500', 0, async function (done) { it('ACTS_AACommand_finish_01_1500', 0, async function (done) {
done()
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE-1).then(()=>{ globalThis.abilityDelegator.finishTest(msg, Number.MIN_VALUE-1).then(()=>{
console.log("ACTS_AACommand_finish_01_1500 finishTest test end ========> callback " ) console.log("ACTS_AACommand_finish_01_1500 finishTest test end ========> callback " )
done()
}) })
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册