Skip to content

Commit

Permalink
Changed max length of messsage in test to match Client library
Browse files Browse the repository at this point in the history
  • Loading branch information
URJala committed Jul 9, 2024
1 parent 98cc34c commit aae6fe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_script_command_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ class ScriptCommandInterfaceTest : public ::testing::Test

void readMessage(int32_t& command, std::vector<int32_t>& 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))
Expand Down

0 comments on commit aae6fe3

Please sign in to comment.