Closed mastak closed 8 years ago
In rabbitmq logs, there are some errors after running tests:
=ERROR REPORT==== 19-Feb-2016::21:32:06 ===
Error on AMQP connection <0.1149.4> (192.168.155.1:64092 -> 172.17.0.2:5672, vhost: '/test-aioamqp', user: 'admin', state: running), channel 1:
operation channel.close caused a connection exception channel_error: "expected 'channel.open'"
I figured out that one channel added twice to the self.channels
list:
testcase.py
# ...
class ProxyChannel(Channel):
def __init__(self, test_case, *args, **kw):
super().__init__(*args, **kw)
self.test_case = test_case
self.test_case.register_channel(self)
# ...
def reset_vhost(self):
# ...
@asyncio.coroutine
def go():
transport, protocol = yield from self.create_amqp()
channel = yield from self.create_channel(amqp=protocol)
self.channels.append(channel)
There are also some tests that triggers some errors in Rabbit for instance:
https://github.com/Polyconseil/aioamqp/blob/master/aioamqp/tests/test_close.py#L38
Confirming original test failure. I think it's due to rabbitmq/rabbitmq-server#237 that was merged in RabbitMQ 3.6.0 (though I didn't check with an older version to confirm).
In any case, I've got a patch for this, will push ASAP.
I have one failure in tests (other tests are succeed):
Also I have many failures tests when I run it on mac os. It has some limits with docker, and I want to fix it. But I think it would be better if all the tests will pass on linux, and only after that I will make changes.