diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-04-11 12:36:55 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2022-04-11 16:50:41 +0000 |
commit | bb5f45fb582f6deb1f0233c1dc078bdd4c1cbbf2 (patch) | |
tree | eb0b534b7684520550dacfb180c5f3517317e7f7 | |
parent | b335f01ef29aeed1037961b1bb4d18886e38b781 (diff) |
pgw: Wait for component to get out of SUT's Diameter SUSPECt list
Similar fix was applied to GGSN_Tests when adding Diameter support in
commit 0bcfd9de8ff359673ddb71e013dbad44bf9510cc.
Change-Id: I95ddf6c1048f0bfd6590bae574aea15c4fc2710b
-rw-r--r-- | pgw/PGW_Tests.ttcn | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pgw/PGW_Tests.ttcn b/pgw/PGW_Tests.ttcn index 9846dabe..2b744188 100644 --- a/pgw/PGW_Tests.ttcn +++ b/pgw/PGW_Tests.ttcn @@ -146,6 +146,12 @@ friend function f_init_diameter(charstring id) runs on PGW_Test_CT { vc_DIAMETER.start(DIAMETER_Emulation.main(ops, pars, id)); f_diameter_wait_capability(DIAMETER_UNIT); + /* Give some time for our emulation to get out of SUSPECT list of SUT (3 watchdong ping-pongs): + * RFC6733 sec 5.1 + * RFC3539 sec 3.4.1 [5] + * https://github.com/freeDiameter/freeDiameter/blob/master/libfdcore/p_psm.c#L49 + */ + f_sleep(1.0); } private function f_init(float guard_timeout := 60.0) runs on PGW_Test_CT { |