update p2p_group_operating_state_test.cpp

Signed-off-by: sunjinqiang <17319862417@163.com>
This commit is contained in:
sunjinqiang 2022-11-18 07:47:21 +00:00 committed by Gitee
parent d2f894a7fc
commit 36f9e24b55
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -239,7 +239,7 @@ HWTEST_F(P2pGroupOperatingStateTest, ProcessGroupRemovedEvt, TestSize.Level1)
InternalMessage msg;
msg.SetMessageName(static_cast<int>(P2P_STATE_MACHINE_CMD::P2P_EVENT_GROUP_REMOVED));
AddGroupManager();
EXPECT_CALL(WifiP2PHalInterface::GetInstance(), P2pFlush(_))
EXPECT_CALL(WifiP2PHalInterface::GetInstance(), P2pFlush())
.WillOnce(Return(WifiErrorNo::WIFI_IDL_OPT_OK));
EXPECT_TRUE(pP2pGroupOperatingState->ExecuteStateMsg(&msg));
EXPECT_FALSE(pP2pGroupOperatingState->ExecuteStateMsg(nullptr));