Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ab56088

Browse files
committedFeb 8, 2022
wipp
1 parent cd0c922 commit ab56088

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎test/unit/node/routes/health.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe("health (http)", () => {
3939
})
4040
})
4141

42-
describe("health (https)", () => {
42+
describe.only("/ with https server", () => {
4343
let codeServer: httpserver.HttpServer | httpserver.HttpsServer | undefined
4444

4545
afterEach(async () => {
@@ -49,7 +49,7 @@ describe("health (https)", () => {
4949
}
5050
})
5151

52-
it("/ (websocket) with --cert", async () => {
52+
it("should generate cert and connect to websocket without errors", async () => {
5353
// NOTES@jsjoeio
5454
// We connect to /healthz via a websocket
5555
// and send a message and then we expect it to work
@@ -73,10 +73,10 @@ describe("health (https)", () => {
7373
reject(error)
7474
}
7575
})
76-
ws.on("open", () => ws.send(JSON.stringify({ event: "health" })))
76+
ws.on("open", () => ws.send(JSON.stringify({ event: "test" })))
7777
})
7878
ws.terminate()
7979
expect(errorMessages.length).toBe(0)
80-
expect(message).toStrictEqual({ event: "health", status: "expired", lastHeartbeat: 0 })
80+
expect(message).toStrictEqual({ event: "test" })
8181
})
8282
})

0 commit comments

Comments
 (0)
Please sign in to comment.