Skip to content

Commit 9b8d7bc

Browse files
frankistcodebot
authored andcommitted
mac: fix computation of expected result in unit test
1 parent 70ecb3e commit 9b8d7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unittests/mac/dl_sch_pdu_assembler_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ TEST_F(mac_dl_sch_assembler_tester, pack_multiple_sdus_of_same_lcid)
253253
byte_buffer expected_result;
254254
bit_encoder enc(expected_result);
255255
for (unsigned i = 0; i != nof_sdus; ++i) {
256-
enc.pack(0b0, 1); // R
257256
unsigned mac_expected_sdu_size = get_mac_sdu_payload_size(tb_size - expected_result.length());
257+
enc.pack(0b0, 1); // R
258258
enc.pack(mac_expected_sdu_size >= MAC_SDU_SUBHEADER_LENGTH_THRES, 1); // F
259259
enc.pack(LCID_SRB1, 6); // LCID
260260
enc.pack(sdu_payload_sizes[i], 8 * (get_mac_sdu_subheader_size(mac_expected_sdu_size) - 1)); // L

0 commit comments

Comments
 (0)