improve errors

This commit is contained in:
nora 2022-02-28 16:46:50 +01:00
parent 232c1d2830
commit 2be26f7e49
3 changed files with 68 additions and 10 deletions

View file

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