From 8b59908c4a7ac5cd348ba19dc312a51ba4105342 Mon Sep 17 00:00:00 2001 From: durui Date: Sat, 12 Aug 2023 18:02:01 +0800 Subject: [PATCH] add destroy Signed-off-by: durui --- .../src/main/js/test/AVSessionManager.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 3c370fa01..cd05209c7 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) { -- GitLab