[PATCH] openbsc[master]: vty tests: testBSCreload: ipa_handle_small: ensure rx of 4 b...

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Feb 3 03:25:35 UTC 2017


Review at  https://gerrit.osmocom.org/1736

vty tests: testBSCreload: ipa_handle_small: ensure rx of 4 bytes

Change-Id: I995b7aba9d0b51b0861a4281dbbca888f36e9e00
---
M openbsc/tests/vty_test_runner.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/36/1736/1

diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 3fbe20d..3c25a66 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -1239,6 +1239,7 @@
 
 def ipa_handle_small(x, verbose = False):
     s = data2str(x.recv(4))
+    self.assertEquals(len(s), 4*2)
     if "0001fe00" == s:
         if (verbose):
             print "\tBSC <- NAT: PING?"

-- 
To view, visit https://gerrit.osmocom.org/1736
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I995b7aba9d0b51b0861a4281dbbca888f36e9e00
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list