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 cd3479f926e2fe33f4f6b36563b6c49052351a2a..80fae451b2b657b69fbb13115af9bfd2c1a56e37 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 36d9b57b5ab219ffffaf5a88fc2b333724f8e9de..3a110986a0f10500865b3dce46e0b68731e78ac7 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(() => {