Comments (3)
Can you add a failing test? or write up some pseudo code? Thanks!
from amqp-coffee.
Hi, thank you for responding. I did't have time to do it earlier but here's a failing test for you (add to consumer.test.coffee):
it 'test we can consume an empty message', (done)->
amqp = null
queue = uuid()
messageProcessor = (m)->
done()
async.series [
(next)->
amqp = new AMQP { host:'localhost' }, (e, r)->
should.not.exist e
next()
(next)->
amqp.queue {queue}, (e,q)->
q.declare ()->
q.bind "amq.direct", queue, next
(next)->
amqp.publish "amq.direct", queue, undefined, {confirm: true}, next
(next)->
amqp.consume queue, {}, messageProcessor, (e,r)->
should.not.exist e
next()
]
The test always fails after the timeout expires. I hope this helps.
from amqp-coffee.
Thank you for writing this! This should now be fixed in 0.1.30 Let me know if there are still issues.
from amqp-coffee.
Related Issues (20)
- Design question HOT 6
- typo in the description? HOT 1
- nodejs 4.x and 5.x support. HOT 1
- release master, add tags, etc HOT 1
- Handle method.basicCancel HOT 3
- handle connection blocked / unblocked notifications
- high latency on VM machines HOT 12
- working with activeMQ? HOT 2
- support for exchange to exchange routing HOT 1
- Error: Unmatched field {"name":"queue","domain":"shortstr"} HOT 1
- Performing a Connection Healthcheck HOT 1
- NPM warning when installing
- AMQPParser throw an error: Oversize frame 131318 HOT 7
- node-uuid -> uuid, pin versions for deps HOT 4
- Problem with contentType of published messages HOT 2
- direct reply-to & bug in the fields serialization HOT 4
- Connection continuously emits 'error' after the underlying socket died (reconnect = false)
- Publish hangs forever after connection loss (reconnect = false)
- Not able to connect to RabbitMQ cluster setup on Play with docker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amqp-coffee.