qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgodf...@apache.org
Subject svn commit: r1291693 - /qpid/trunk/qpid/tests/src/py/qpid_tests/broker_0_10/msg_groups.py
Date Tue, 21 Feb 2012 10:19:38 GMT
Author: rgodfrey
Date: Tue Feb 21 10:19:37 2012
New Revision: 1291693

URL: http://svn.apache.org/viewvc?rev=1291693&view=rev
Log:
QPID-3861 : Race condition in the python msg group test using a queue browser

Modified:
    qpid/trunk/qpid/tests/src/py/qpid_tests/broker_0_10/msg_groups.py

Modified: qpid/trunk/qpid/tests/src/py/qpid_tests/broker_0_10/msg_groups.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/tests/src/py/qpid_tests/broker_0_10/msg_groups.py?rev=1291693&r1=1291692&r2=1291693&view=diff
==============================================================================
--- qpid/trunk/qpid/tests/src/py/qpid_tests/broker_0_10/msg_groups.py (original)
+++ qpid/trunk/qpid/tests/src/py/qpid_tests/broker_0_10/msg_groups.py Tue Feb 21 10:19:37
2012
@@ -193,6 +193,10 @@ class MultiConsumerMsgGroupTests(Base):
         s2 = self.setup_session()
         b1 = s2.receiver("msg-group-q; {mode: browse}", options={"capacity":0})
 
+        m2 = b1.fetch(0);
+        assert m2.properties['THE-GROUP'] == 'A'
+        assert m2.content['index'] == 0
+
         # C1 should acquire A-0
 
         m1 = c1.fetch(0);
@@ -202,10 +206,6 @@ class MultiConsumerMsgGroupTests(Base):
         ## Queue = A-0, B-1, A-2, b-3, C-4
         ## Owners= ^C1, ---, +C1, ---, ---
 
-        m2 = b1.fetch(0);
-        assert m2.properties['THE-GROUP'] == 'A'
-        assert m2.content['index'] == 0
-
         m2 = b1.fetch(0)
         assert m2.properties['THE-GROUP'] == 'B'
         assert m2.content['index'] == 1



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message