Skip to content

Commit 9e32416

Browse files
committed
Change test buffer size in order to match real application buffer size
1 parent f5829bd commit 9e32416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extras/test/src/util/CBORTestUtil.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ std::vector<uint8_t> encode(PropertyContainer & property_container, bool lightPa
2828
{
2929
int bytes_encoded = 0;
3030
unsigned int starting_property_index = 0;
31-
uint8_t buf[200] = {0};
31+
uint8_t buf[256] = {0};
3232

33-
if (CBOREncoder::encode(property_container, buf, 200, bytes_encoded, starting_property_index, lightPayload) == CborNoError)
33+
if (CBOREncoder::encode(property_container, buf, 256, bytes_encoded, starting_property_index, lightPayload) == CborNoError)
3434
return std::vector<uint8_t>(buf, buf + bytes_encoded);
3535
else
3636
return std::vector<uint8_t>();

0 commit comments

Comments
 (0)