Skip to content

Commit

Permalink
Added check for byte side on socket read (unit test)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROS authored and ROS committed Aug 13, 2013
1 parent de9270b commit 9133249
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simple_message/test/utest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ TEST(SocketSuite, splitPackets)
pthread_create(&senderThrd, NULL, spinSender, &tcpClient);

ASSERT_TRUE(tcpServer.receiveBytes(recv, RECV_LENGTH));
ASSERT_EQ(RECV_LENGTH, recv.getBufferSize());

pthread_cancel(senderThrd);
pthread_join(senderThrd, NULL);
Expand Down

0 comments on commit 9133249

Please sign in to comment.