node-amqp icon indicating copy to clipboard operation
node-amqp copied to clipboard

Tests failing

Open jkondratowicz opened this issue 9 years ago • 0 comments

I wanted to create a PR with a small fix, but in the process I got stuck on running current set of tests. Most of them fail, even though library works as intended.

Example: test-simple.js. The connection is established successfully, message gets published, consumed and acknowledged. But the test is written in a way that listeners aren't unref-d, so the process doesn't exit when it should (which is after consuming the message). So then the 1s timeout kicks in and throws an exception, which makes the test fail (even though all assertions pass). Is there something about those tests that I misunderstand, or are they just broken?

I'm using version 0.2.4 of node-amqp, 0.12.0 of Node, all under Ubuntu 14.04.

jkondratowicz avatar Mar 16 '15 11:03 jkondratowicz