Skip to content

Commit

Permalink
Update test_Network.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
karuna2git authored May 16, 2024
1 parent 7508aae commit ca21ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/L1Tests/tests/test_Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1310,14 +1310,14 @@ TEST_F(NetworkInitializedEventTest, onConnectionStatusChanged)

Core::Event onInternetStatusChange(false, true);
EXPECT_CALL(service, Submit(::testing::_, ::testing::_))
.Times(2)
.Times(1)
.WillOnce(::testing::Invoke(
[&](const uint32_t, const Core::ProxyType<Core::JSON::IElement>& json) {
string text;
EXPECT_TRUE(json->ToString(text));
EXPECT_EQ(text, string(_T("{\"jsonrpc\":\"2.0\",\"method\":\"org.rdk.Network.onConnectionStatusChanged\",\"params\":{\"interface\":\"ETHERNET\",\"status\":\"CONNECTED\"}}")));
return Core::ERROR_NONE;
}))
}));

IARM_BUS_NetSrvMgr_Iface_EventInterfaceConnectionStatus_t intData;
intData.status = 1;
Expand Down

0 comments on commit ca21ab9

Please sign in to comment.