mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
error handling
This commit is contained in:
parent
fc131327b2
commit
232c1d2830
4 changed files with 99 additions and 14 deletions
|
|
@ -6,7 +6,7 @@ const connection = await connectAmqp();
|
|||
|
||||
const channel = await connection.createChannel();
|
||||
|
||||
const reply = await channel.assertQueue(queueName, { durable: false });
|
||||
const reply = await channel.assertQueue(queueName, { durable: true });
|
||||
|
||||
assert(reply.messageCount === 0, 'Message found in queue');
|
||||
assert(reply.consumerCount === 0, 'Consumer listening on queue');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue