From 91332493a9e542cc25babaaa90d1be2b78e97e31 Mon Sep 17 00:00:00 2001 From: ROS Date: Mon, 12 Aug 2013 23:10:42 -0400 Subject: [PATCH] Added check for byte side on socket read (unit test) --- simple_message/test/utest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/simple_message/test/utest.cpp b/simple_message/test/utest.cpp index 2fe74979..dfb469f0 100644 --- a/simple_message/test/utest.cpp +++ b/simple_message/test/utest.cpp @@ -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);