michaelklishin / langohr

A small, feature complete Clojure client for RabbitMQ that embraces AMQP 0.9.1 model

Home Page:http://clojurerabbitmq.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic get (pulling API) always sends acks

boechat107 opened this issue · comments

I tried to use langohr.basic/get with explicit ack, but it seems to not work as expected. Acks are sent anyway.

I looked for a test of the function and I found this code, but I didn't understand its idea. Shouldn't it send some explicit ack?

Your understanding is right, looks like an incorrect test and a possible bug.

I can't reproduce this in the REPL and modifying this test to use automatic acknowledgements makes it fail as expected. The test now sends a basic.ack, this is a decent quick fix for it.