Remove printfs in test. PDCP seems to be notifing correctly the RLC when discard happens.

master
Pedro Alvarez 5 years ago committed by Andre Puschmann
parent 60feab3d7b
commit 972d44be23

@ -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<uint32_t>(cfg.discard_timer); ++i) {
for (uint32_t i = 0; i < static_cast<uint32_t>(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;
}

@ -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;

Loading…
Cancel
Save