diff --git a/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets b/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets index e295c35e8602e28f58ef3badd1ec87169a927f1b..a68e9e6566c5bf65c3c0b58929c89b1ee658ea0d 100644 --- a/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets +++ b/multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets @@ -435,10 +435,10 @@ export default function audioManagerTest() { await audioVolumeGroupManager.getSystemVolumeInDb(3, audio.DeviceType.SPEAKER, (err, data) => { if (err) { console.log(`${TagFrmwk}getSystemVolumeInDb : error ${err.message} ${err.code}`); - expect(Number(err.code)).assertEqual(env.INVALID_INPUT_PARAMETER_6800101); + expect(false).assertTrue(); done(); } else { - console.log(`${TagFrmwk}: getSystemVolumeInDb : error ${err.message} ${err.code}`); + console.log(`${TagFrmwk}: getSystemVolumeInDb testcase FAIL! `); expect(false).assertTrue(); done(); } @@ -466,7 +466,7 @@ export default function audioManagerTest() { expect(false).assertTrue(); done(); } else { - console.log(`${TagFrmwk} getSystemVolumeInDb : error ${err.message} ${err.code}`); + console.log(`${TagFrmwk}: getSystemVolumeInDb testcase FAIL! `); expect(false).assertTrue(); done(); } @@ -494,7 +494,7 @@ export default function audioManagerTest() { expect(false).assertTrue(); done(); } else { - console.log(`${TagFrmwk}:getSystemVolumeInDb error ${err.message} ${err.code}`); + console.log(`${TagFrmwk}: getSystemVolumeInDb testcase FAIL! `); expect(false).assertTrue(); done(); }