Skip to content

Commit a6a2f45

Browse files
committed
cleanup magic string (cn in local is different from ci)
1 parent 6fb02e0 commit a6a2f45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/tls_connection.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import { Connection } from "../../src/connection.js"
55
import { readFile } from "fs/promises"
66

77
describe("TLS Connection", () => {
8+
const LOCAL_TEST_CN = "rabbitmq"
9+
810
let environment: Environment
911
let connection: Connection
1012

1113
test("creating a TLS connection", async () => {
12-
const cn = process.env.CN ?? "rabbitmq"
14+
const cn = process.env.CN ?? LOCAL_TEST_CN
1315
const tls = {
1416
ca: await readFile("./tls-gen/basic/result/ca_certificate.pem", "utf8"),
1517
cert: await readFile(`./tls-gen/basic/result/client_${cn}_certificate.pem`, "utf8"),

0 commit comments

Comments
 (0)