From ad1764840935315e38098a2c3a228882b88f7203 Mon Sep 17 00:00:00 2001 From: ling990 Date: Wed, 23 Mar 2022 14:20:28 +0800 Subject: [PATCH] modify testcases Signed-off-by: ling990 Signed-off-by: ling990 --- .../src/main/js/test/AudioEncoderFuncPromiseTest.test.js | 2 +- .../src/main/js/test/AudioEncoderMultiInstancesTest.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js index cd3479f92..80fae451b 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js @@ -168,7 +168,7 @@ describe('AudioEncoderFuncPromise', function () { async function resetWork() { resetParam(); - await audioEncodeProcessor.reset().then(() => { + await audioEncodeProcessor.reset().then(async() => { console.info("case reset success"); if (needrelease) { await audioEncodeProcessor.release().then(() => { diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js index 36d9b57b5..3a110986a 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderMultiInstancesTest.test.js @@ -159,7 +159,7 @@ describe('AudioEncoderFuncPromise', function () { async function resetWork(audioEncodeProcessor) { resetParam(); - await audioEncodeProcessor.reset().then(() => { + await audioEncodeProcessor.reset().then(async() => { console.info("case reset success"); if (needrelease) { await audioEncodeProcessor.release().then(() => { -- GitLab