[ 
https://issues.apache.org/jira/browse/QPID-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513350
 ] 

Rafael H. Schloming commented on QPID-542:
------------------------------------------

I think there is actually still a race condition for this test even if you wait 
for confirm of the publish. Confirm of the publish would only indicate that the 
message is on the queue. I think the only way to fix this test is to change it 
to actually get the first message prior to canceling the consumer and 
publishing the second message.

> This should be replace waiting for confirm of publish once we have message 
> class from 0-10
> ------------------------------------------------------------------------------------------
>
>                 Key: QPID-542
>                 URL: https://issues.apache.org/jira/browse/QPID-542
>             Project: Qpid
>          Issue Type: Bug
>          Components: AMQP Compliance
>            Reporter: Carl Trieloff
>
> cut from basic.py
>         channel.basic_publish(routing_key="test-queue-4", 
> content=Content("One"))
>       import time; time.sleep(5) # this should be replace waiting for confirm 
> of publish once we have message class
>         #cancel should stop messages being delivered
>         channel.basic_cancel(consumer_tag="my-consumer")

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to