Skip to content

Commit 0a944f0

Browse files
committed
test: lorawanstack: Use valid message type
We previously made up an invalid message type, which was roughly `MCPS_MULTICAST | 0x40`. This causes an MBED_ASSERT failure in the handle_rx function, as it uses an assert to validate the message type passed to it (in convert_to_msg_flag()). Use the valid message type MCPS_MULTICAST instead in the handle_rx unit test.
1 parent 07aefbc commit 0a944f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawanstack/Test_LoRaWANStack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ TEST_F(Test_LoRaWANStack, handle_rx)
554554
}
555555
ind.buffer = ind_buf;
556556
ind.buffer_size = 50;
557-
ind.type = mcps_type_t(66);
557+
ind.type = MCPS_MULTICAST;
558558
radio._ev->rx_done(NULL, 0, 0, 0);
559559
EXPECT_TRUE(50 == object->handle_rx(data, 50, port, flags, false));
560560
EXPECT_EQ(10, data[10]);

0 commit comments

Comments
 (0)