From de67d88ca9c25bff2725dca085eceb8b2e55141f Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 27 Apr 2022 21:27:52 +0100 Subject: [PATCH] lib,rlc_am_nr: fix buffer state checker in rx status report with ranges test --- lib/test/rlc/rlc_am_nr_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/test/rlc/rlc_am_nr_test.cc b/lib/test/rlc/rlc_am_nr_test.cc index dbb8edac7..661d93c87 100644 --- a/lib/test/rlc/rlc_am_nr_test.cc +++ b/lib/test/rlc/rlc_am_nr_test.cc @@ -2552,7 +2552,8 @@ int rx_nack_range_test(rlc_am_nr_sn_size_t sn_size) rlc_am_nr_write_status_pdu(status, sn_size, &status_pdu); rlc1.write_pdu(status_pdu.msg, status_pdu.N_bytes); - TESTASSERT_EQ(0, rlc1.get_buffer_state()); + + TESTASSERT_EQ(2 * pdu_size_first + 3 * pdu_size_continued, rlc1.get_buffer_state()); return SRSRAN_SUCCESS; }