From 7d6a4745d0c62c57d9fc2210a0c763c3787fea77 Mon Sep 17 00:00:00 2001 From: wangzx0705 Date: Wed, 30 Aug 2023 09:09:31 +0000 Subject: [PATCH] modify GetUnderflowCount ets Signed-off-by: wangzx0705 --- .../src/main/ets/test/GetUnderflowCount.test.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 be15e3716..82b333d8c 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(); -- GitLab