Skip to content

Commit 146d025

Browse files
aescolarcarlescufi
authored andcommitted
tests bluetooth mesh: Fix a incorrect assert
This ASSERT_TRUE should have been an assert equal (ASSERT_TRUE checks that the first paramters != 0) and the condition was not correct. Fix it. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent c4f102f commit 146d025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bsim/bluetooth/mesh/src/test_blob.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ static void srv_check_reboot_and_continue(void)
15251525
ASSERT_EQUAL(0, blob_srv.state.ttl);
15261526
ASSERT_EQUAL(BLOB_CLI_ADDR, blob_srv.state.cli);
15271527
ASSERT_EQUAL(1, blob_srv.state.timeout_base);
1528-
ASSERT_TRUE(BT_MESH_TX_SDU_MAX, blob_srv.state.mtu_size);
1528+
ASSERT_EQUAL(BT_MESH_RX_SDU_MAX - BT_MESH_MIC_SHORT, blob_srv.state.mtu_size);
15291529
ASSERT_EQUAL(CONFIG_BT_MESH_BLOB_BLOCK_SIZE_MAX * 2, blob_srv.state.xfer.size);
15301530
ASSERT_EQUAL(12, blob_srv.state.xfer.block_size_log);
15311531
ASSERT_EQUAL(1, blob_srv.state.xfer.id);

0 commit comments

Comments
 (0)