File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ describe("health (http)", () => {
39
39
} )
40
40
} )
41
41
42
- describe ( "health ( https) ", ( ) => {
42
+ describe . only ( "/ with https server ", ( ) => {
43
43
let codeServer : httpserver . HttpServer | httpserver . HttpsServer | undefined
44
44
45
45
afterEach ( async ( ) => {
@@ -49,7 +49,7 @@ describe("health (https)", () => {
49
49
}
50
50
} )
51
51
52
- it ( "/ ( websocket) with --cert " , async ( ) => {
52
+ it ( "should generate cert and connect to websocket without errors " , async ( ) => {
53
53
// NOTES@jsjoeio
54
54
// We connect to /healthz via a websocket
55
55
// and send a message and then we expect it to work
@@ -73,10 +73,10 @@ describe("health (https)", () => {
73
73
reject ( error )
74
74
}
75
75
} )
76
- ws . on ( "open" , ( ) => ws . send ( JSON . stringify ( { event : "health " } ) ) )
76
+ ws . on ( "open" , ( ) => ws . send ( JSON . stringify ( { event : "test " } ) ) )
77
77
} )
78
78
ws . terminate ( )
79
79
expect ( errorMessages . length ) . toBe ( 0 )
80
- expect ( message ) . toStrictEqual ( { event : "health" , status : "expired" , lastHeartbeat : 0 } )
80
+ expect ( message ) . toStrictEqual ( { event : "test" } )
81
81
} )
82
82
} )
You can’t perform that action at this time.
0 commit comments