File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1005,7 +1005,8 @@ describe('idle socket timeout', () => {
1005
1005
validate : { body : schema . any ( ) } ,
1006
1006
} ,
1007
1007
( context , req , res ) => {
1008
- // net.Socket::timeout isn't documented or part of the types, yet...
1008
+ // net.Socket#timeout isn't documented. Once https://github.com/nodejs/node/pull/34543 merges,
1009
+ // IKibanaSocket can expose the socket timeout, so we don't have to do this ugly casting to any
1009
1010
return res . ok ( { body : { socketTimeout : ( req . socket as any ) . socket . timeout } } ) ;
1010
1011
}
1011
1012
) ;
@@ -1029,7 +1030,8 @@ describe('idle socket timeout', () => {
1029
1030
options : { timeout : { idleSocket : routeIdleSocketTimeout } } ,
1030
1031
} ,
1031
1032
( context , req , res ) => {
1032
- // net.Socket::timeout isn't documented or part of the types, yet...
1033
+ // net.Socket#timeout isn't documented. Once https://github.com/nodejs/node/pull/34543 merges,
1034
+ // IKibanaSocket can expose the socket timeout, so we don't have to do this ugly casting to any
1033
1035
return res . ok ( { body : { socketTimeout : ( req . socket as any ) . socket . timeout } } ) ;
1034
1036
}
1035
1037
) ;
You can’t perform that action at this time.
0 commit comments