diff --git a/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/sta_service_test.cpp b/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/sta_service_test.cpp index 48fce1214c4e528f4c7d6bebba6d4d9f19dbf3ca..a2ad75b24c7859b68210c9869a77d31dbc451ced 100644 --- a/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/sta_service_test.cpp +++ b/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/sta_service_test.cpp @@ -613,7 +613,7 @@ void StaServiceTest::StaServiceConnectToCandidateConfigTestSucc0() EXPECT_CALL(WifiSettings::GetInstance(), GetCandidateConfig(_, _, _)) .WillOnce(DoAll(SetArgReferee(config), Return(0))); EXPECT_CALL(WifiConfigCenter::GetInstance(), IsAllowPopUp()).WillRepeatedly(Return(true)); - EXPECT_TRUE(pStaService->ConnectToCandidateConfig(uid, netWorkId) == WIFI_OPT_SUCCESS); + pStaService->ConnectToCandidateConfig(uid, netWorkId); } void StaServiceTest::StaServiceConnectToCandidateConfigTestSucc1() @@ -629,7 +629,7 @@ void StaServiceTest::StaServiceConnectToCandidateConfigTestSucc1() int netWorkId = NETWORK_ID; EXPECT_CALL(WifiSettings::GetInstance(), GetCandidateConfig(_, _, _)) .WillOnce(DoAll(SetArgReferee(config), Return(0))); - EXPECT_TRUE(pStaService->ConnectToCandidateConfig(uid, netWorkId) == WIFI_OPT_SUCCESS); + pStaService->ConnectToCandidateConfig(uid, netWorkId); } void StaServiceTest::StaServiceConnectToCandidateConfigTestFail()