From 5b006d7a272c19fc6330e0a755b79a0324940e99 Mon Sep 17 00:00:00 2001 From: durui Date: Mon, 7 Aug 2023 20:52:25 +0800 Subject: [PATCH] add destory Signed-off-by: durui --- .../src/main/js/test/AVSessionManager.test.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 43ea99c5f..b395c6050 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,8 +159,6 @@ export default function AVSessionManager() { expect(true).assertTrue() } } - await sleep(10000); - await currentAVSession.destroy(); done(); }) @@ -181,11 +179,11 @@ export default function AVSessionManager() { console.info(`CreateAVSession 111BusinessError: code: `); let aVCastController; console.info(`CreateAVSession 333BusinessError: code: `); - aVCastController = await currentAVSession.getAVCastController((err, data) => { + aVCastController = await currentAVSession.getAVCastController(async(err, data) => { if (err) { console.error(`getAVCastController BusinessError: code: ${err.code}, message: ${err.message}`); expect(err.code == 6600101).assertTrue(); - currentAVSession.destroy(); + await currentAVSession.destroy(); done(); } }); @@ -196,8 +194,6 @@ export default function AVSessionManager() { expect(true).assertTrue() } } - await sleep(10000); - await currentAVSession.destroy(); done(); }) @@ -323,8 +319,6 @@ export default function AVSessionManager() { } } - await sleep(10000); - await currentAVSession.destroy(); done(); }) /* * -- GitLab