osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43375?usp=email )

Change subject: hlr: f_init: add guard_timeout parameter
......................................................................

hlr: f_init: add guard_timeout parameter

Prepare to add longer timeout values for some tests.

Change-Id: I94df9eb0ef2b35f3c0d7a85a220ff14cc9338216
---
M hlr/HLR_Tests.ttcn
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved




diff --git a/hlr/HLR_Tests.ttcn b/hlr/HLR_Tests.ttcn
index 5048005..b263aa7 100644
--- a/hlr/HLR_Tests.ttcn
+++ b/hlr/HLR_Tests.ttcn
@@ -63,7 +63,7 @@
        var IPA_Emulation_CT vc_IPA_server;
        var GSUP_Emulation_CT vc_GSUP_server;

-       timer g_Tguard := 10.0;
+       timer g_Tguard;
 };

 modulepar {
@@ -104,7 +104,7 @@
 type record of HlrSubscriber HlrSubscriberList;

 type component HLR_ConnHdlr extends GSUP_ConnHdlr, PyHSS_REST_CT {
-       timer g_Tguard := 10.0;
+       timer g_Tguard;
        var HLR_ConnHdlrPars g_pars;
        port TELNETasp_PT VTY;
        port MSLookup_mDNS_PT mDNS;
@@ -237,10 +237,10 @@
        vc_MSLookup_mDNS.start(MSLookup_mDNS_Emulation.f_main());
 }

-function f_init(boolean legacy := true, boolean gsup_server := false) runs on 
test_CT {
+function f_init(boolean legacy := true, boolean gsup_server := false, float 
guard_timeout := 10.0) runs on test_CT {

        /* activate default guard timer to ensure all tests eventually 
terminate */
-       g_Tguard.start;
+       g_Tguard.start(guard_timeout);
        activate(as_Tguard());
 
        f_init_gsup("HLR_Test", legacy);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43375?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I94df9eb0ef2b35f3c0d7a85a220ff14cc9338216
Gerrit-Change-Number: 43375
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to