Repository: qpid-proton
Updated Branches:
  refs/heads/master 0c1de249e -> 2d899d1f5


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/master
Commit: 2d899d1f5b3eac660f7a5fb647aeaeec68347fa2
Parents: 0c1de24
Author: Rafael Schloming <[email protected]>
Authored: Tue Apr 28 10:44:04 2015 -0400
Committer: Rafael Schloming <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to