提交 075f1601 编写于 作者: O openharmony_ci 提交者: Gitee

!1377 Ans xts failed fix

Merge pull request !1377 from blackleon/master_1215_01
......@@ -1003,7 +1003,7 @@ describe('ActsAnsActiveTest', function () {
function getAllCallbackNine(err,data){
console.debug("===========Ans_GetAllActive_0900 getAllCallbackNine data.length============>"+data.length);
console.debug("===========Ans_GetAllActive_0900 getAllCallbackNine err.code============>"+err.code);
expect(err.code).assertEqual(ERR_ANS_NON_SYSTEM_APP);
expect(err.code != 0).assertEqual(true);
}
/*
......@@ -1063,7 +1063,7 @@ describe('ActsAnsActiveTest', function () {
await notify.getAllActiveNotifications().then(()=>{
console.debug("=======Ans_GetAllActive_1000 then========>");
}).catch((err)=>{
expect(err.code).assertEqual(ERR_ANS_NON_SYSTEM_APP);
expect(err.code != 0).assertEqual(true);
console.debug("=======Ans_GetAllActive_1000 err==========>"+err.code);
});
setTimeout(function(){
......
......@@ -35,7 +35,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect:onConnecteOne,
onDisconnect:onDisconnectOne
}
notify.subscribe(subscriber);
await notify.subscribe(subscriber);
console.info("===========Ans_UnSubscriber_0100 subscribe=============>");
notify.unsubscribe(subscriber, (err)=>{
console.debug("===========Ans_UnSubscriber_0100 unsubscribe err.code=================>"+err.code);
......@@ -65,7 +65,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect:onConnecteTwo,
onDisconnect:onDisconnectTwo
}
notify.subscribe(subscriber);
await notify.subscribe(subscriber);
console.info("===========Ans_UnSubscriber_0200 subscribe=============>");
notify.unsubscribe(subscriber).then(()=>{
console.debug("=======Ans_UnSubscriber_0200 subscribe then==========>");
......@@ -179,7 +179,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect:onConnecteTest,
onDisconnect:onDisconnectTest
}
notify.subscribe(subscriber);
await notify.subscribe(subscriber);
console.info("===========Ans_UnSubscriber_0500 subscribe=============>");
notify.unsubscribe(subscriberTest,(err)=>{
console.debug("Ans_UnSubscriber_0500 unsubscribe err.code=================>"+err.code);
......@@ -223,7 +223,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect:onConnecteTestTwo,
onDisconnect:onDisconnectTestTwo
}
notify.subscribe(subscriber);
await notify.subscribe(subscriber);
console.info("===========Ans_UnSubscriber_0600 subscribe=============>");
notify.unsubscribe(subscriberTest).then().catch((err)=>{
console.debug("=======Ans_UnSubscriber_0600 unsubscribe catch err=================>"+err.code);
......@@ -259,7 +259,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect:onConnecteSeven,
onDisconnect:onDisconnectSeven
}
notify.subscribe(subscriber);
await notify.subscribe(subscriber);
console.info("===========Ans_UnSubscriber_0700 subscribe=============>");
notify.unsubscribe(subscriber, (err)=>{
console.debug("Ans_UnSubscriber_0700 unsubscribe first err.code=================>"+err.code);
......@@ -299,7 +299,7 @@ describe('ActsAnsUnSubscriberTest', function () {
onConnect:onConnecteEight,
onDisconnect:onDisconnectEight
}
notify.subscribe(subscriber);
await notify.subscribe(subscriber);
console.info("===========Ans_UnSubscriber_0800 subscribe=============>");
notify.unsubscribe(subscriber).then((err)=>{
console.debug("=======Ans_UnSubscriber_0800 subscribe first then err=================>"+err.code);
......@@ -394,7 +394,7 @@ describe('ActsAnsUnSubscriberTest', function () {
*/
it('Ans_UnSubscriber_1100', 0, async function (done) {
console.info("===========Ans_UnSubscriber_1100 start=============>");
notify.subscribe({
await notify.subscribe({
onConnect:onConnecteEleven,
onDisconnect:onDisconnectEleven
});
......@@ -429,7 +429,7 @@ describe('ActsAnsUnSubscriberTest', function () {
*/
it('Ans_UnSubscriber_1200', 0, async function (done) {
console.info("===========Ans_UnSubscriber_1200 start=============>");
notify.subscribe({
await notify.subscribe({
onConnect:onConnecteTwelve,
onDisconnect:onConnecteTwelve
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册