mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
fix
This commit is contained in:
parent
dbc577abbc
commit
504757b324
7 changed files with 52 additions and 29 deletions
16
test-js/src/declare-server-named-queue.js
Normal file
16
test-js/src/declare-server-named-queue.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { assert, connectAmqp } from './utils/utils.js';
|
||||
|
||||
const connection = await connectAmqp();
|
||||
|
||||
const channel = await connection.createChannel();
|
||||
|
||||
const reply = await channel.assertQueue('');
|
||||
|
||||
assert(reply.messageCount === 0, 'Message found in queue');
|
||||
assert(reply.consumerCount === 0, 'Consumer listening on queue');
|
||||
assert(reply.queue !== '', 'Wrong queue name returned');
|
||||
|
||||
console.log(`created queue '${reply.queue}'`);
|
||||
|
||||
await channel.close();
|
||||
await connection.close();
|
||||
Loading…
Add table
Add a link
Reference in a new issue