diff --git a/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetUnderflowCount.test.ets b/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetUnderflowCount.test.ets index be15e3716c690f94bfa9763515ca9917606c90c0..82b333d8c5459f4f18c9a0eca1b206fd7d5f1402 100644 --- a/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetUnderflowCount.test.ets +++ b/multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetUnderflowCount.test.ets @@ -173,7 +173,7 @@ export default function audioRendererTest() { await renderPlay(); await audioRen.getUnderflowCount().then((data) => { console.log(`getUnderflowCount :SUCCESS ${data}`); - expect(data).assertEqual(env.OUTPUT_NUMBER_2); + expect(data).assertLargerOrEqual(env.OUTPUT_NUMBER_1); audioRen.drain().then(() => { audioRen.stop().then(() => { done(); @@ -294,7 +294,7 @@ export default function audioRendererTest() { done(); } else { console.log(`getUnderflowCount :SUCCESS ${data}`); - expect(data).assertEqual(env.OUTPUT_NUMBER_2); + expect(data).assertLargerOrEqual(env.OUTPUT_NUMBER_1); audioRen.drain().then(() => { audioRen.stop().then(() => { done();