From f9a764c21c820fd5bdc7f3bc57c2ee1a03b69a77 Mon Sep 17 00:00:00 2001 From: Li Yuhang Date: Tue, 25 Jul 2023 16:21:21 +0800 Subject: [PATCH] Add await for session destroy Signed-off-by: Li Yuhang --- .../avsessionManager/src/main/js/test/AVSessionJSTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionJSTest.js b/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionJSTest.js index 8d63e590f..b5d58762c 100644 --- a/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionJSTest.js +++ b/multimedia/avsession/avsession_js_standard/avsessionManager/src/main/js/test/AVSessionJSTest.js @@ -52,8 +52,8 @@ export default function AVSessionJsTest() { console.info(TAG + "Create session finished, beforeAll called"); }) - afterAll(function () { - session.destroy(); + afterAll(async function () { + await session.destroy(); console.info(TAG + 'afterAll called') }) -- GitLab