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 3c370fa01a53982fb299077d45b92de97e0cdfba..cd05209c7820a307a63266dc1620513fe269b873 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 @@ -159,6 +159,8 @@ export default function AVSessionManager() { expect(true).assertTrue() } } + await sleep(10000); + await currentAVSession.destroy(); done(); }) @@ -353,9 +355,10 @@ export default function AVSessionManager() { }).catch((err) => { console.error(`getCurrentItem BusinessError: code: ${err.code}, message: ${err.message}`); }); - }).catch((err) => { + }).catch(async(err) => { console.error(`getAVCastController BusinessError: code: ${err.code}, message: ${err.message}`); expect(err.code == 6600101).assertTrue(); + await currentAVSession.destroy(); done(); }); } catch (error) {