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)", () => {
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} )
You can’t perform that action at this time.
0 commit comments