Remove unstable RPC test case

Merge pull request  from chengang/fix_tcp_ut
This commit is contained in:
i-robot 2021-12-28 01:40:54 +00:00 committed by Gitee
commit efaf29dc44
1 changed files with 0 additions and 20 deletions
tests/ut/cpp/distributed/rpc/tcp

View File

@ -257,26 +257,6 @@ TEST_F(TCPTest, send1Msg) {
shutdownTcpServer(pid1);
pid1 = 0;
}
/// Feature: test max message body check..
/// Description: send a message with body exceeding the limit of max message body.
/// Expectation: drop the invalid message.
TEST_F(TCPTest, sendInvalidMsg) {
g_recv_num = 0;
pid1 = startTcpServer(args);
bool ret = CheckRecvNum(1, 5);
ASSERT_FALSE(ret);
std::string from = "tcp://" + m_localIP + ":2223";
std::string to = "tcp://" + m_localIP + ":2225";
SendMsg(from, to, 1024 * 1024 * pid_num + 1);
ret = CheckRecvNum(1, 5);
ASSERT_FALSE(ret);
Unlink(to);
shutdownTcpServer(pid1);
pid1 = 0;
}
} // namespace rpc
} // namespace distributed
} // namespace mindspore