From aae6fe35fbc5cdb63d1e0258138c6315f7f376d1 Mon Sep 17 00:00:00 2001 From: URJala Date: Tue, 9 Jul 2024 12:12:46 +0000 Subject: [PATCH] Changed max length of messsage in test to match Client library --- tests/test_script_command_interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_script_command_interface.cpp b/tests/test_script_command_interface.cpp index 63f36369..60ee40af 100644 --- a/tests/test_script_command_interface.cpp +++ b/tests/test_script_command_interface.cpp @@ -64,11 +64,11 @@ class ScriptCommandInterfaceTest : public ::testing::Test void readMessage(int32_t& command, std::vector& message) { - // Max message length is 26 - uint8_t buf[sizeof(int32_t) * 26]; + // Max message length is 28 + uint8_t buf[sizeof(int32_t) * 28]; uint8_t* b_pos = buf; size_t read = 0; - size_t remainder = sizeof(int32_t) * 26; + size_t remainder = sizeof(int32_t) * 28; while (remainder > 0) { if (!TCPSocket::read(b_pos, remainder, read))