aboutsummaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-28 11:59:57 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-28 12:18:40 +0200
commitc761c547cd3ebf82cbeeccdd8d211b9b642fdcbb (patch)
treef5be92812113a6eef2d4ae65d1d995a566fa7e7b /bts/BTS_Tests.ttcn
parentc8effb7e0fdc33646ab6ba28bc60eaf88c472fb6 (diff)
bts: TC_pcu_{time,rts}_ind: Higher tolerances
When executing the test on our build slaves, we ran into the following: > Number of TDMA Frames (1100) not matching (1073 .. 1093) > Number of TDMA Frames (1096) not matching (1073 .. 1093) So it seems the tolerance was a bit too tight. If the timer runs for a bit more than the requested amount of seconds (e.g. due to high system load), the number of TDMA frames is likely a bit higher and hence we need to permit a larger tolerance. Change-Id: Ib00bb7e7f223fb0329d00e3835127b8c31299e27
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r--bts/BTS_Tests.ttcn4
1 files changed, 2 insertions, 2 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 6786d686..968ed6c8 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -3713,7 +3713,7 @@ testcase TC_pcu_time_ind() runs on test_CT {
/* verify the number of frames expired matches our expectation */
const float c_GSM_FN_DURATION_MS := 4.61538;
var float fn_expected := test_duration * 1000.0 / c_GSM_FN_DURATION_MS;
- var template integer t_fn_expected := f_tolerance(float2int(fn_expected), 1, 100000, 10);
+ var template integer t_fn_expected := f_tolerance(float2int(fn_expected), 1, 100000, 20);
if (not match(fn_expired, t_fn_expected)) {
setverdict(fail, "Number of TDMA Frames (", fn_expired, ") not matching ", t_fn_expected);
}
@@ -3778,7 +3778,7 @@ testcase TC_pcu_rts_req() runs on test_CT {
/* verify the number of frames expired matches our expectation */
const float c_GSM_FN_DURATION_MS := 4.61538;
var float fn_expected := test_duration * 1000.0 / c_GSM_FN_DURATION_MS;
- var template integer t_fn_expected := f_tolerance(float2int(fn_expected), 1, 100000, 10);
+ var template integer t_fn_expected := f_tolerance(float2int(fn_expected), 1, 100000, 20);
if (not match(fn_expired, t_fn_expected)) {
setverdict(fail, "Number of TDMA Frames (", fn_expired, ") not matching ", t_fn_expected);
}