test_ack RabbitMQ

Asked by dbs

Using txAMQP 0.6.1 and RabbitMQ v2.8.5, the "test_ack" test in
test/test_basic.py fails (error below).

I know this test is skipped by default.

Does anyone know _why_ it fails?
There are other uses of "no_ack=False" in other tests that aren't skipped and they pass.

thanks,
<dbs>

    ===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/defer.py", line 1043, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/Users/dbs/Pkg/txAMQP-0.6.1/src/txamqp/test/test_basic.py", line 193, in test_ack
    msg3b = yield queue.get(timeout=1)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/Users/dbs/Pkg/txAMQP-0.6.1/src/txamqp/queue.py", line 32, in _raiseIfClosed
    raise Closed()
txamqp.queue.Closed:

txamqp.test.test_basic.BasicTests.test_ack
-------------------------------------------------------------------------------

Question information

Language:
English Edit question
Status:
Open
For:
txAMQP Edit question
Assignee:
Esteve Fernandez Edit question
Last query:
Last reply:
Revision history for this message
Esteve Fernandez (esteve) said :
#1

IIRC, it's disabled because back when txAMQP started, RabbitMQ didn't support the basic.ack and basic.recover. However, I just checked and RabbitMQ has support for both, though the tests use the 0.9 specification. I'll run the testsuite with 0.9.1 and if it still fails I'll raise this to a bug.

Thanks for using txAMQP

Can you help with this problem?

Provide an answer of your own, or ask dbs for more information if necessary.

To post a message you must log in.