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 1763260b6f1b932a6ccbb53f1cfb9f35c07cd7ac..08fe38a4f9f42468517b3b934b39bd5c3276bf05 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(); }) })