Skip to content

Commit 9246fe3

Browse files
committed
new error message when not connected
1 parent 0ca37d1 commit 9246fe3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ test("can handle frames split over socket reads", async t => {
565565

566566
test("have to connect socket before opening channels", async t => {
567567
const amqp = new AMQPClient("amqp://127.0.0.1")
568-
await t.throwsAsync(() => amqp.channel(), { message: /not connected/ })
568+
await t.throwsAsync(() => amqp.channel(), { message: /Connection closed/ })
569569
})
570570

571571
test("will raise if socket is closed on send", async t => {

0 commit comments

Comments
 (0)