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

!8292 ActsGetWantAllTest用例时序问题修复

Merge pull request !8292 from yangliang36/yl0329
......@@ -16,6 +16,15 @@ import featureAbility from '@ohos.ability.featureAbility'
import wantConstant from '@ohos.ability.wantConstant'
import { describe, beforeAll, it, expect } from '@ohos/hypium'
const sleep = async delay => {
return new Promise((resolve, _) => {
setTimeout(async () => {
resolve(0);
}, delay);
});
};
export default function ActsGetWantTest() {
describe('ActsGetWantTest', function () {
beforeAll(async (done) => {
......@@ -23,6 +32,10 @@ describe('ActsGetWantTest', function () {
done();
})
beforeEach(async () => {
await sleep(1000);
})
// @tc.number: ACTS_GetWant_0100
// @tc.name: getWant : get want in current ability
// @tc.desc:Start the ability through startabilityforresult,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册