Skip to content

Commit 1ecc6b3

Browse files
committed
fix: tests
1 parent e37c79c commit 1ecc6b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

extras/test/src/test_command_decode.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SCENARIO("Test the decoding of command messages") {
6767
0x39, 0x32, 0x66, 0x38, 0x37, 0x39, 0x34, 0x39,
6868
0x33, 0x39, 0x34, 0x63};
6969

70-
int payload_length = sizeof(payload) / sizeof(uint8_t);
70+
size_t payload_length = sizeof(payload) / sizeof(uint8_t);
7171
CBORMessageDecoder decoder;
7272
Decoder::Status err = decoder.decode((Message*)&command, payload, payload_length);
7373
const char *thingIdToMatch = "e4494d55-872a-4fd2-9646-92f87949394c";
@@ -77,8 +77,6 @@ SCENARIO("Test the decoding of command messages") {
7777
REQUIRE(strcmp(command.thingDetachCmd.params.thing_id, thingIdToMatch) == 0);
7878
REQUIRE(command.c.id == ThingDetachCmdId);
7979
}
80-
81-
delete msg;
8280
}
8381

8482
/************************************************************************************/

0 commit comments

Comments
 (0)