qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject [05/13] qpid-proton git commit: further refined the assert statement
Date Wed, 29 Apr 2015 19:38:52 GMT
further refined the assert statement


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/2d899d1f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/2d899d1f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/2d899d1f

Branch: refs/heads/kgiusti-python3
Commit: 2d899d1f5b3eac660f7a5fb647aeaeec68347fa2
Parents: 0c1de24
Author: Rafael Schloming <rhs@alum.mit.edu>
Authored: Tue Apr 28 10:44:04 2015 -0400
Committer: Rafael Schloming <rhs@alum.mit.edu>
Committed: Tue Apr 28 10:44:04 2015 -0400

----------------------------------------------------------------------
 tests/python/proton_tests/messenger.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2d899d1f/tests/python/proton_tests/messenger.py
----------------------------------------------------------------------
diff --git a/tests/python/proton_tests/messenger.py b/tests/python/proton_tests/messenger.py
index 172e38c..0fc9fec 100644
--- a/tests/python/proton_tests/messenger.py
+++ b/tests/python/proton_tests/messenger.py
@@ -1016,8 +1016,11 @@ class SelectableMessengerTest(common.Test):
       before = msnd.outgoing
       if mrcv.incoming == 0:
         p.pump()
-      # if we didn't receive the messages, they should be "in flight"
-      if mrcv.incoming == 0:
+      # If we didn't receive the messages, check that they are
+      # in-flight. We can only check this after the first message
+      # arrives since sasl handshaking might require multiple pumps
+      # prior to the first message arrival.
+      if i > 0 and mrcv.incoming == 0:
         assert msnd.outgoing < before
       # now pump until they arrive
       while mrcv.incoming == 0:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message