Polyconseil / aioamqp

AMQP implementation using asyncio
Other
280 stars 88 forks source link

Tests sometimes fail when running locally #138

Closed ilia-khaustov closed 7 years ago

ilia-khaustov commented 7 years ago

It makes sense to change default AMQP_REFRESH_TIME taken from os.environ from 3 to 5 as defined in .travis.yml.

RemiCardona commented 7 years ago

Yes, it's due to a not-so-minor change in rabbit 3.6.7

https://github.com/rabbitmq/rabbitmq-server/releases/tag/rabbitmq_v3_6_7

Test Suites that use HTTP API

Integration test suites that rely on HTTP API for listing or closing connections, channels, etc need to be adjusted with this plugin:

  • We recommend reducing stats retention periods (see Hop, rabbit-hole)
  • Because stats emission is now two-step and asynchronous, test suites may need to wait for events to propagate before asserting on them (see Hop, rabbit-hole).

I've locally configured my rabbit server to have a much quicker stats propagation time, but it should just work out of the box.

Thanks for the reminder