diff --git a/lib/test/upper/pdcp_nr_test.cc b/lib/test/upper/pdcp_nr_test.cc index f24572697..c20f4c590 100644 --- a/lib/test/upper/pdcp_nr_test.cc +++ b/lib/test/upper/pdcp_nr_test.cc @@ -179,13 +179,11 @@ int test_tx_sdu_discard(const pdcp_initial_state& init_state, sdu->append_bytes(sdu1, sizeof(sdu1)); pdcp->write_sdu(std::move(sdu), true); - for (uint32_t i = 0; i < static_cast(cfg.discard_timer); ++i) { + for (uint32_t i = 0; i < static_cast(cfg.discard_timer) - 1; ++i) { timers->step_all(); - printf("%d\n",i); } TESTASSERT(rlc->discard_count == 0); timers->step_all(); - timers->step_all(); TESTASSERT(rlc->discard_count == 1); return 0; } diff --git a/lib/test/upper/pdcp_nr_test.h b/lib/test/upper/pdcp_nr_test.h index 058da2ff4..bff2bb32b 100644 --- a/lib/test/upper/pdcp_nr_test.h +++ b/lib/test/upper/pdcp_nr_test.h @@ -90,6 +90,7 @@ public: { log->info("Notifing RLC to discard SDU (SN=%" PRIu32 ")\n", discard_sn); discard_count++; + log->info("Discard_count=%" PRIu64 ")\n", discard_count); } uint64_t rx_count = 0;