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 08fe38a4f9f42468517b3b934b39bd5c3276bf05..88e84cf7068077ba1e799d50298f01c83e7259f0 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,12 +151,6 @@ 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(); }) @@ -192,12 +186,6 @@ 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(); }) @@ -243,12 +231,6 @@ 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(); }) /* * @@ -286,12 +268,6 @@ 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(); }) /* * @@ -339,12 +315,6 @@ 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(); }) /* * @@ -390,12 +360,7 @@ 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(); - }); + await session.destroy(); done(); }) })