<div dir="ltr">Yes, I want to test message requeing scenario. Here, my target is, let say there are two consumers, &quot;consumer1&quot; received message(ex - &quot;Message1&quot;) from queue (ex - &quot;Test_Queue&quot;) and��consumer failed before acknowledgement to server, so that message is not deleted from rabbitmq server right? That same message (&quot;Message1&quot;) has to be consumed by &quot;consumer2&quot; right?<div>
<br></div><div>So, this is the case I want test. Here, I want to stop the &quot;consumer1&quot; before sending ack to rabbitmq server. So, how to achieve this? Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Oct 17, 2013 at 6:51 PM, Michael Klishin <span dir="ltr">&lt;<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 17 Oct 2013, at 17:16, Rajasekhar P &lt;<a href="mailto:sekhar434145@gmail.com">sekhar434145@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Here, I am struck with how to test this case? can you please share me consumer code?<br>
<br>
</div>Can we take a step back and clarify what will the test verify?<br>
<br>
If you want to test that messages are requeued, create a custom consumer that closes its channel<br>
and stops, for example. But this particular aspect is already tested in RabbitMQ server and Java client<br>
suites.<br>
<div class="HOEnZb"><div class="h5"><br>
MK<br>
<br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>