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 43ea99c5f9724de68552cb8d98631dd78a8badb7..b395c6050eeb5335453cda025a3230c02c84c5f0 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(); }) /* *