Change in osmo-ttcn3-hacks[master]: pgw: Don't wait for 10s timeout if starting a ping that takes 10s

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Apr 21 20:57:43 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17926 )


Change subject: pgw: Don't wait for 10s timeout if starting a ping that takes 10s
......................................................................

pgw: Don't wait for 10s timeout if starting a ping that takes 10s

rather, dynamically wait 5s longer than the theoretical time it
should take.

Change-Id: Ife2b7b8d03ee6808cfa73bb860cc63c46c451499
---
M pgw/PGW_Tests.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/26/17926/1

diff --git a/pgw/PGW_Tests.ttcn b/pgw/PGW_Tests.ttcn
index 22e32da..cf3b901 100644
--- a/pgw/PGW_Tests.ttcn
+++ b/pgw/PGW_Tests.ttcn
@@ -335,7 +335,7 @@
 	var charstring ping :="ping -c " & int2str(count) & " -i " & int2str(interval);
 	ping := ping & " -I " & f_inet_ntoa(g_ip4_addr);
 	ping := ping & " " & host;
-	f_start_prog_wait(ping);
+	f_start_prog_wait(ping, tout := int2float(5 + interval*count));
 }
 
 

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ife2b7b8d03ee6808cfa73bb860cc63c46c451499
Gerrit-Change-Number: 17926
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200421/e139a9d4/attachment.htm>


More information about the gerrit-log mailing list