Skip to content

Commit b00a878

Browse files
committed
f1ap-du: fix unit tests for ue context setup. Issue: correctly handle transmit notification
1 parent bad0119 commit b00a878

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/unittests/f1ap/du/f1ap_du_test_helpers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ void f1ap_du_test::run_ue_context_setup_procedure(du_ue_index_t ue_index, const
341341
// Report transmission notification back to F1AP.
342342
std::optional<uint32_t> pdcp_sn = get_pdcp_sn(f1ap_req->rrc_container, pdcp_sn_size::size12bits, true, test_logger);
343343
ue.f1c_bearers[LCID_SRB1].bearer->handle_transmit_notification(pdcp_sn.value());
344+
this->ctrl_worker.run_pending_tasks();
344345
}
345346

346347
f1ap_ue_configuration_response f1ap_du_test::update_f1ap_ue_config(du_ue_index_t ue_index,

tests/unittests/f1ap/du/f1ap_du_ue_context_setup_procedure_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class f1ap_du_ue_context_setup_test : public f1ap_du_test
9191
void on_rrc_container_transmitted(uint32_t highest_pdcp_sn)
9292
{
9393
this->test_ue->f1c_bearers[LCID_SRB1].bearer->handle_transmit_notification(highest_pdcp_sn);
94+
this->ctrl_worker.run_pending_tasks();
9495
}
9596

9697
ue_test_context* test_ue = nullptr;

0 commit comments

Comments
 (0)