提交 bf68ddca 编写于 作者: D durui

添加destroy

Signed-off-by: Ndurui <durui15@huawei.com>
上级 0b4278bb
...@@ -151,6 +151,12 @@ export default function AVSessionManager() { ...@@ -151,6 +151,12 @@ export default function AVSessionManager() {
} }
} }
await sleep(10000); await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done(); done();
}) })
...@@ -186,6 +192,12 @@ export default function AVSessionManager() { ...@@ -186,6 +192,12 @@ export default function AVSessionManager() {
} }
} }
await sleep(10000); await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done(); done();
}) })
...@@ -231,6 +243,12 @@ export default function AVSessionManager() { ...@@ -231,6 +243,12 @@ export default function AVSessionManager() {
} }
await sleep(10000); await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done(); done();
}) })
/* * /* *
...@@ -268,6 +286,12 @@ export default function AVSessionManager() { ...@@ -268,6 +286,12 @@ export default function AVSessionManager() {
} }
} }
await sleep(10000); await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done(); done();
}) })
/* * /* *
...@@ -315,6 +339,12 @@ export default function AVSessionManager() { ...@@ -315,6 +339,12 @@ export default function AVSessionManager() {
} }
} }
await sleep(10000); await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done(); done();
}) })
/* * /* *
...@@ -360,6 +390,12 @@ export default function AVSessionManager() { ...@@ -360,6 +390,12 @@ export default function AVSessionManager() {
} }
} }
await sleep(10000); await sleep(10000);
await session.destroy().then(() => {
console.info('TestLog: Session Destroy SUCCESS');
}).catch((err) => {
console.info(`TestLog: Session Destroy error: code: ${err.code}, message: ${err.message}`);
expect(false).assertTrue();
});
done(); done();
}) })
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册