lib,rlc_am_nr: fix wrong buffer state calculation for segment RETXes

when SO=0
This commit is contained in:
Pedro Alvarez 2022-04-21 15:28:02 +01:00
parent d7a32a0ea5
commit abfa113576
1 changed files with 1 additions and 1 deletions

View File

@ -1229,7 +1229,7 @@ int segment_retx_and_loose_segments_test(rlc_am_nr_sn_size_t sn_size)
uint32_t expected_buffer_state = (header_size + payload_size) * NBUFS;
TESTASSERT_EQ(expected_buffer_state, rlc1.get_buffer_state());
// Read 5 PDUs from RLC1 (1 byte each)
// Read 5 PDUs from RLC1 (each with a full SDU)
for (int i = 0; i < NBUFS; i++) {
uint32_t len = rlc1.read_pdu(pdu_bufs[i].msg, header_size + payload_size);
pdu_bufs[i].N_bytes = len;