jolly has uploaded this change for review.
Fix bankd connection at RemsimClient_Tests.TC_bank_disconnect_reconnect
After each connection (initial connection and reconnect), the test must
wait for the bankd connection to be fully established. Previously the
IPA/RSPRO emulation failed, because the socket was closed before sending
the acknowledgemen, leading to a 'Broken pipe' error.
Change-Id: I0a8b339bcc4136442994b8825904df8aaf9aa95d
---
M remsim/RemsimClient_Tests.ttcn
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/46/42646/1
diff --git a/remsim/RemsimClient_Tests.ttcn b/remsim/RemsimClient_Tests.ttcn
index d747eef..5d6db82 100644
--- a/remsim/RemsimClient_Tests.ttcn
+++ b/remsim/RemsimClient_Tests.ttcn
@@ -170,6 +170,7 @@
/* expect inbound connectClientReq on simulated bankd */
as_connectClientReq(i := 1);
+ /* Wait for bankd connection to be established. */
f_sleep(1.0);
/* configure client to disconnect from [simulated] bankd */
@@ -190,6 +191,9 @@
/* expect inbound connect on simulated bankd */
as_connectClientReq(i := 1);
+ /* Wait for bankd connection to be established. */
+ f_sleep(1.0);
+
setverdict(pass);
}
To view, visit change 42646. To unsubscribe, or for help writing mail filters, visit settings.