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

!5414 dataability的insert测试用例失败问题修改

Merge pull request !5414 from mingxihua/master
......@@ -41,6 +41,7 @@ describe('ActsDataAbilityHelperTest', function () {
} catch (err) {
console.error('=ACTS_beforeAll acquireDataAbilityHelper catch(err)====>:' + err);
}
sleep(300);
console.debug('= ACTS_beforeAll ====<end');
done();
})
......@@ -50,6 +51,15 @@ describe('ActsDataAbilityHelperTest', function () {
done();
})
function sleep(delay) {
let start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
/*
* @tc.number: ACTS_AcquireDataAbilityHelper_0100
* @tc.name: GetDataAbilityHelper : Connects an ability to a Service ability
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册