mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
improve errors
This commit is contained in:
parent
232c1d2830
commit
2be26f7e49
3 changed files with 68 additions and 10 deletions
|
|
@ -6,7 +6,7 @@ const connection = await connectAmqp();
|
|||
|
||||
const channel = await connection.createChannel();
|
||||
|
||||
const reply = await channel.assertQueue(queueName, { durable: true });
|
||||
const reply = await channel.assertQueue(queueName, { durable: false });
|
||||
|
||||
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