提交 7436fa97 编写于 作者: M mingxihua

IssueNo:#I4X70Z: 元能力适配新任务栈xts测试用例修改

Description: 元能力适配新任务栈xts测试用例修改
Sig:SIG_ApplicationFramework
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nmingxihua <mingxihua@huawei.com>
上级 48ce40f9
......@@ -41,8 +41,12 @@ describe('ActsAmsCallBackSixth Scene', function () {
});
function sleep(delay) {
var start = (new Date()).getTime();
while((new Date()).getTime() - start < delay) {}
var start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
/*
......@@ -56,7 +60,7 @@ describe('ActsAmsCallBackSixth Scene', function () {
console.info('Acts_Ams_test_12200 clearMissions error.code ' + error.code + ',data [' + info + ']' );
expect(typeof(error.code)).assertEqual("number");
expect(error.code).assertEqual(0);
done();
});
done();
})
})
\ No newline at end of file
......@@ -41,8 +41,12 @@ describe('ActsAmsCallBackSixth Scene', function () {
});
function sleep(delay) {
var start = (new Date()).getTime();
while((new Date()).getTime() - start < delay) {}
var start = new Date().getTime();
while (true) {
if (new Date().getTime() - start > delay) {
break;
}
}
}
/*
......@@ -54,6 +58,7 @@ describe('ActsAmsCallBackSixth Scene', function () {
var info = await missionManager.clearAllMissions().catch(err => {
console.log('Acts_Ams_test_12100 clearAllMission failed: ' + err);
expect(err).assertEqual(0);
done();
});
console.info('Acts_Ams_test_12100 clearAllMissions data [' + info + ']');
done();
......
......@@ -22,20 +22,10 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
describe('ActsMissionSnapshotTest', function () {
beforeAll(async (done) => {
console.debug('= ACTS_beforeAll ====<begin');
try {
} catch (err) {
console.error('=ACTS_beforeAll catch(err)====>:' + err);
}
console.debug('= ACTS_beforeAll ====<end');
done();
})
afterAll(async (done) => {
console.debug('= ACTS_afterAll ====<begin');
try {
} catch (err) {
console.error('=ACTS_afterAll catch(err)====>:' + err);
}
console.debug('= ACTS_afterAll ====<end');
done();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册