From 3c328279fa5aa6f244eb4a66b47385f0570fc0b5 Mon Sep 17 00:00:00 2001 From: wy19970731 Date: Tue, 26 Aug 2025 14:49:23 +0800 Subject: [PATCH] fix nearlink testcase Signed-off-by: luminous --- .../src/audio_policy_manager_unit_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/audio_policy/test/unittest/audio_policy_manager_unit_test/src/audio_policy_manager_unit_test.cpp b/services/audio_policy/test/unittest/audio_policy_manager_unit_test/src/audio_policy_manager_unit_test.cpp index 52047f59cf..b8447a0273 100644 --- a/services/audio_policy/test/unittest/audio_policy_manager_unit_test/src/audio_policy_manager_unit_test.cpp +++ b/services/audio_policy/test/unittest/audio_policy_manager_unit_test/src/audio_policy_manager_unit_test.cpp @@ -802,7 +802,7 @@ HWTEST(AudioPolicyManager, SetNearlinkDeviceVolume_001, TestSize.Level1) bool updateUi = false; auto result = audioPolicyManager_->SetNearlinkDeviceVolume(macAddress, volumeType, volume, updateUi); - EXPECT_EQ(result, ERROR); + EXPECT_NE(result, SUCCESS); } /** @@ -821,7 +821,7 @@ HWTEST(AudioPolicyManager, SetNearlinkDeviceVolume_002, TestSize.Level1) bool updateUi = true; auto result = audioPolicyManager_->SetNearlinkDeviceVolume(macAddress, volumeType, volume, updateUi); - EXPECT_EQ(result, ERROR); + EXPECT_NE(result, SUCCESS); } /** -- Gitee