aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tbf/TbfTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tbf/TbfTest.cpp')
-rw-r--r--tests/tbf/TbfTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index f8cb9749..1dccfffa 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -574,6 +574,12 @@ static void test_tbf_dl_llc_loss()
OSMO_ASSERT(ms_dl_tbf(ms) != NULL);
+ /* Here PCU would answer with data_cnf and trigger
+ * bts_rcv_imm_ass_cnf(), which would set up the timer X2002. In this
+ * test we go directly to T0 timeout to move it to FLOW state: */
+ ms_dl_tbf(ms)->handle_timeout();
+ OSMO_ASSERT(ms_dl_tbf(ms)->state_is(TBF_ST_FLOW));
+
/* Get first BSN */
struct msgb *msg;
int fn = 0;