提交 5b006d7a 编写于 作者: D durui

add destory

Signed-off-by: Ndurui <durui15@huawei.com>
上级 ff200b74
...@@ -159,8 +159,6 @@ export default function AVSessionManager() { ...@@ -159,8 +159,6 @@ export default function AVSessionManager() {
expect(true).assertTrue() expect(true).assertTrue()
} }
} }
await sleep(10000);
await currentAVSession.destroy();
done(); done();
}) })
...@@ -181,11 +179,11 @@ export default function AVSessionManager() { ...@@ -181,11 +179,11 @@ export default function AVSessionManager() {
console.info(`CreateAVSession 111BusinessError: code: `); console.info(`CreateAVSession 111BusinessError: code: `);
let aVCastController; let aVCastController;
console.info(`CreateAVSession 333BusinessError: code: `); console.info(`CreateAVSession 333BusinessError: code: `);
aVCastController = await currentAVSession.getAVCastController((err, data) => { aVCastController = await currentAVSession.getAVCastController(async(err, data) => {
if (err) { if (err) {
console.error(`getAVCastController BusinessError: code: ${err.code}, message: ${err.message}`); console.error(`getAVCastController BusinessError: code: ${err.code}, message: ${err.message}`);
expect(err.code == 6600101).assertTrue(); expect(err.code == 6600101).assertTrue();
currentAVSession.destroy(); await currentAVSession.destroy();
done(); done();
} }
}); });
...@@ -196,8 +194,6 @@ export default function AVSessionManager() { ...@@ -196,8 +194,6 @@ export default function AVSessionManager() {
expect(true).assertTrue() expect(true).assertTrue()
} }
} }
await sleep(10000);
await currentAVSession.destroy();
done(); done();
}) })
...@@ -323,8 +319,6 @@ export default function AVSessionManager() { ...@@ -323,8 +319,6 @@ export default function AVSessionManager() {
} }
} }
await sleep(10000);
await currentAVSession.destroy();
done(); done();
}) })
/* * /* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册