aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-09 13:19:06 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-09-17 11:05:45 +0200
commit63700ead348ef8bf9a9fe64cff0722d197151be2 (patch)
tree477a41d0f3ad236521f379637fdd2f20e15d2a2f /tests
parent474dc77894ad550dab225da36c377a6506cad6f7 (diff)
Use osmo_tdef to implement ms-idle-time
This commit would also remove the option from config_write_pcu() since it's automatically filled in by osmo_tdef, but there was actually a bug because that param was never printed when saving the config... Change-Id: Id8e70b0f44ef2f7e20ecdb3fd8ca93ae2a05b9a3
Diffstat (limited to 'tests')
-rw-r--r--tests/tbf/TbfTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 5bf94b51..7241a357 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -155,6 +155,7 @@ static void setup_bts(BTS *the_bts, uint8_t ts_no, uint8_t cs = 1)
bts->alloc_algorithm = alloc_algorithm_a;
bts->initial_cs_dl = cs;
bts->initial_cs_ul = cs;
+ osmo_tdef_set(bts->T_defs_pcu, -2030, 0, OSMO_TDEF_S);
trx = &bts->trx[0];
trx->pdch[ts_no].enable();
@@ -501,7 +502,8 @@ static void test_tbf_dl_llc_loss()
bts = the_bts.bts_data();
setup_bts(&the_bts, ts_no);
- bts->ms_idle_sec = 10; /* keep the MS object */
+ /* keep the MS object 10 seconds */
+ OSMO_ASSERT(osmo_tdef_set(bts->T_defs_pcu, -2030, 10, OSMO_TDEF_S) == 0);
gprs_bssgp_create_and_connect(bts, 33001, 0, 33001, 2234, 2234, 2234, 1, 1, false, 0, 0, 0);