提交 b27c59a0 编写于 作者: Z zhoujun62

solve XTS fail problem

Signed-off-by: Nzhoujun62 <zhoujun62@huawei.com>
上级 ea741458
...@@ -23,6 +23,17 @@ console.debug("====>in Ability.test====>"); ...@@ -23,6 +23,17 @@ console.debug("====>in Ability.test====>");
export default function abilityTest() { export default function abilityTest() {
describe('ActsGetDisplayIdStartAbilityForResultTest', function () { describe('ActsGetDisplayIdStartAbilityForResultTest', function () {
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
afterEach(async (done) => {
console.debug('= ACTS_afterEach ====<begin');
await sleep(2000);
console.debug('= ACTS_afterEach ====<end');
done();
})
console.debug("====>in ActsGetDisplayIdStartAbilityForResultTest====>"); console.debug("====>in ActsGetDisplayIdStartAbilityForResultTest====>");
/* /*
...@@ -31,7 +42,7 @@ export default function abilityTest() { ...@@ -31,7 +42,7 @@ export default function abilityTest() {
* @tc.desc: Verify Get displayId to startAbilityForResult Ability * @tc.desc: Verify Get displayId to startAbilityForResult Ability
*/ */
it('ACTS_startAbilityForResult_0800', 0, async function (done) { it('ACTS_startAbilityForResult_0800', 0, async function (done) {
console.log('ACTS_startAbilityForResult_0100====<begin'); console.log('ACTS_startAbilityForResult_0800====<begin');
var subscriber; var subscriber;
let id; let id;
...@@ -70,7 +81,7 @@ export default function abilityTest() { ...@@ -70,7 +81,7 @@ export default function abilityTest() {
}) })
function unSubscribeCallback() { function unSubscribeCallback() {
console.debug("====>UnSubscribe0100 CallBack====>"); console.debug("====>UnSubscribe0800 CallBack====>");
} }
function timeout() { function timeout() {
...@@ -158,7 +169,7 @@ export default function abilityTest() { ...@@ -158,7 +169,7 @@ export default function abilityTest() {
console.debug("====>ACTS_startAbilityForResult_1000 Subscribe CallBack data:====>" + JSON.stringify(data)); console.debug("====>ACTS_startAbilityForResult_1000 Subscribe CallBack data:====>" + JSON.stringify(data));
async function processInfoCheck(data) { async function processInfoCheck(data) {
console.info('====> ACTS_getDisplayIdTest_0600=====>'); console.info('====> ACTS_startAbilityForResult_1000=====>');
expect(data.parameters['displayId']).assertEqual(0); expect(data.parameters['displayId']).assertEqual(0);
expect(data.parameters['windowMode']).assertEqual(0); expect(data.parameters['windowMode']).assertEqual(0);
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册