error handling

This commit is contained in:
nora 2022-02-28 12:46:08 +01:00
parent fc131327b2
commit 232c1d2830
4 changed files with 99 additions and 14 deletions

View file

@ -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');