Problem running tests
I've not been able to run the tests that come with txamqp so far, I'm wondering what I'm doing wrong.
I have python 2.6.2, twisted 8.2.0, txamqp head (rev. 15 atm), and an out-of-the-box rabbitmq-server installed.
At first I used "trial txamqp/test" while standing in src/, and the tests would just hang during the call to client.authenticate in TestBase.connect(). They'd timeout after two minutes with not much of a traceback.
Changing TestBase's vhost from 'localhost' to '/' (line 41 of testlib.py), or configuring a 'localhost' vhost and assigning user 'guest' to it, makes the hangs go away. It now instead gives many errors, similar to the following one:
(This is what it outputs when running "trial txamqp/
anthony@
txamqp.
ExampleTest
test_example ... [ERROR]
=======
[ERROR]: txamqp.
Traceback (most recent call last):
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/home/
reply = yield channel.
File "/usr/lib/
result = result.
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/home/
raise Closed(self.reason)
txamqp.
=======
[ERROR]: txamqp.
Traceback (most recent call last):
File "/usr/lib/
result = g.send(result)
File "/home/
raise Closed(self.reason)
txamqp.
=======
[ERROR]: txamqp.
Traceback (most recent call last):
Failure: twisted.
Selectables:
<<class 'twisted.
-------
Ran 1 tests in 0.403s
FAILED (errors=3)
anthony@
-------
Most tests fail with this error (501, 'FRAME_ERROR - cannot decode <<0,0,10,116,..... followed by an unclean reactor), though a couple don't fail, and BasicTests.test_get still hangs like before.
Any ideas about what could be causing this, and how to fix it?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- txAMQP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anthony Lenton
- Solved:
- Last query:
- Last reply: