提交 cdaa7231 编写于 作者: 杨亮

fix ActsGetWantAllTest

Signed-off-by: N杨亮 <yangliang36@huawei.com>
Change-Id: I703aa228bd7c77019c2aa2008384e3cde51c93b4
上级 ca0fba4f
...@@ -16,6 +16,15 @@ import featureAbility from '@ohos.ability.featureAbility' ...@@ -16,6 +16,15 @@ import featureAbility from '@ohos.ability.featureAbility'
import wantConstant from '@ohos.ability.wantConstant' import wantConstant from '@ohos.ability.wantConstant'
import { describe, beforeAll, it, expect } from '@ohos/hypium' 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() { export default function ActsGetWantTest() {
describe('ActsGetWantTest', function () { describe('ActsGetWantTest', function () {
beforeAll(async (done) => { beforeAll(async (done) => {
...@@ -23,6 +32,10 @@ describe('ActsGetWantTest', function () { ...@@ -23,6 +32,10 @@ describe('ActsGetWantTest', function () {
done(); done();
}) })
beforeEach(async () => {
await sleep(1000);
})
// @tc.number: ACTS_GetWant_0100 // @tc.number: ACTS_GetWant_0100
// @tc.name: getWant : get want in current ability // @tc.name: getWant : get want in current ability
// @tc.desc:Start the ability through startabilityforresult, // @tc.desc:Start the ability through startabilityforresult,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册