From bf68ddca818a81ea73918554d3b46bb43296386a Mon Sep 17 00:00:00 2001 From: durui Date: Sat, 29 Jul 2023 10:53:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0destroy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: durui --- .../src/main/js/test/AVSessionManager.test.js | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionManager.test.js b/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionManager.test.js index 1763260b6..08fe38a4f 100644 --- a/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionManager.test.js +++ b/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionManager.test.js @@ -151,6 +151,12 @@ export default function AVSessionManager() { } } 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(); }) @@ -186,6 +192,12 @@ export default function AVSessionManager() { } } 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(); }) @@ -231,6 +243,12 @@ export default function AVSessionManager() { } 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(); }) /* * @@ -268,6 +286,12 @@ export default function AVSessionManager() { } } 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(); }) /* * @@ -315,6 +339,12 @@ export default function AVSessionManager() { } } 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(); }) /* * @@ -360,6 +390,12 @@ export default function AVSessionManager() { } } 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(); }) }) -- GitLab