From dc805c00eb46f923be6e185a2337fc6351ae38e3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 11 Dec 2020 10:59:17 +0100 Subject: gbproxy: Fix log messages in timeout situations Printing an unbound 'rx' variable when nothing was received due to timeout is somehow not really useful. Print what we expected to receive. Change-Id: I4fee89baa954736ae8298b63667297dd57d8ec4f --- gbproxy/GBProxy_Tests.ttcn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn index 655e396c..2077e0fc 100644 --- a/gbproxy/GBProxy_Tests.ttcn +++ b/gbproxy/GBProxy_Tests.ttcn @@ -765,7 +765,7 @@ friend function f_global_pcu2sgsn(template (value) PDU_BSSGP tx, template (prese mtc.stop; } [] T.timeout { - setverdict(fail, "Timeout waiting for BSSGP on SGSN side: ", rx); + setverdict(fail, "Timeout waiting for BSSGP on SGSN side: ", exp_rx); mtc.stop; } } @@ -788,7 +788,7 @@ friend function f_global_sgsn2pcu(template (value) PDU_BSSGP tx, template (prese mtc.stop; } [] T.timeout { - setverdict(fail, "Timeout waiting for BSSGP on PCU side: ", rx); + setverdict(fail, "Timeout waiting for BSSGP on PCU side: ", exp_rx); mtc.stop; } } -- cgit v1.2.3