Skip to content

Commit 5a33b3f

Browse files
committed
chore: fix ts and lint errors
1 parent 745c2d8 commit 5a33b3f

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

test/e2e/connect.test.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@ import { expect } from "chai"
22
import { Client, connect } from "../../src"
33
import { createClient } from "../support/fake_data"
44
import { Rabbit } from "../support/rabbit"
5-
import { eventually, username, password } from "../support/util"
6-
import { getTestNodesFromEnv } from "../support/util"
5+
import { eventually, username, password, getTestNodesFromEnv } from "../support/util"
76
import { Version } from "../../src/versions"
87
import { randomUUID } from "node:crypto"
98
import { readFile } from "node:fs/promises"
109

1110
async function createTlsClient(): Promise<Client> {
1211
const [firstNode] = getTestNodesFromEnv()
13-
return connect(
14-
{
15-
hostname: firstNode.host,
16-
port: 5551,
17-
mechanism: 'EXTERNAL',
18-
ssl: {
19-
ca: await readFile("./tls-gen/basic/result/ca_certificate.pem"),
20-
cert: await readFile("./tls-gen/basic/result/client_rabbitmq_certificate.pem"),
21-
key: await readFile("./tls-gen/basic/result/client_rabbitmq_key.pem"),
22-
},
23-
vhost: "/",
24-
}
25-
)
12+
return connect({
13+
hostname: firstNode.host,
14+
port: 5551,
15+
mechanism: "EXTERNAL",
16+
ssl: {
17+
ca: await readFile("./tls-gen/basic/result/ca_certificate.pem", "utf8"),
18+
cert: await readFile("./tls-gen/basic/result/client_rabbitmq_certificate.pem", "utf8"),
19+
key: await readFile("./tls-gen/basic/result/client_rabbitmq_key.pem", "utf8"),
20+
},
21+
username: "",
22+
password: "",
23+
vhost: "/",
24+
})
2625
}
2726

2827
describe("connect", () => {

0 commit comments

Comments
 (0)