mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
even more queuing around
This commit is contained in:
parent
4643483d70
commit
d90d61504c
5 changed files with 24 additions and 7 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