]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Removed unnecessary check in unix_control_client.
authorMarcin Siodelski <marcin@isc.org>
Wed, 5 Jul 2017 18:04:10 +0000 (20:04 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 6 Jul 2017 15:18:42 +0000 (17:18 +0200)
This change fixes an unstable unit test and it was okayed on jabber.

src/lib/testutils/unix_control_client.cc

index a60a130498adeebec4ae17de264222f8fb3daf69..faae202b6e5df22f606b1907bc9cc7f43f9edf93 100644 (file)
@@ -110,11 +110,6 @@ bool UnixControlClient::getResponse(std::string& response,
         return (false);
     }
 
-    if (bytes_rcvd >= sizeof(buf)) {
-        ADD_FAILURE() << "Response size too large: " << bytes_rcvd;
-        return (false);
-    }
-
     // Convert the response to a string
     response = std::string(buf, bytes_rcvd);
     return (true);