File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,6 @@ export class NodeCommand extends BaseCommand {
582
582
throw new FullstackTestingError ( `failed to create port forward for '${ nodeId } ' proxy on port ${ localPort } ` , e )
583
583
}
584
584
}
585
- localPort ++
586
585
}
587
586
588
587
throw new FullstackTestingError ( `proxy for '${ nodeId } ' is not UP [ attempt = ${ attempts } /${ maxAttempts } ` )
@@ -885,8 +884,10 @@ export class NodeCommand extends BaseCommand {
885
884
886
885
async getNodeProxyStatus ( url ) {
887
886
try {
887
+ this . logger . debug ( `Fetching proxy status from: ${ url } ` )
888
888
const res = await fetch ( url , {
889
889
method : 'GET' ,
890
+ signal : AbortSignal . timeout ( 5000 ) ,
890
891
headers : {
891
892
Authorization : `Basic ${ Buffer . from (
892
893
`${ constants . NODE_PROXY_USER_ID } :${ constants . NODE_PROXY_PASSWORD } ` ) . toString (
@@ -896,9 +897,12 @@ export class NodeCommand extends BaseCommand {
896
897
const response = await res . json ( )
897
898
898
899
if ( res . status === 200 ) {
899
- return response [ 0 ] ?. stats ?. filter (
900
+ const status = response [ 0 ] ?. stats ?. filter (
900
901
( stat ) => stat . name === 'http_backend' ) [ 0 ] ?. stats ?. status
902
+ this . logger . debug ( `Proxy status: ${ status } ` )
903
+ return status
901
904
} else {
905
+ this . logger . debug ( `Proxy request status code: ${ res . status } ` )
902
906
return null
903
907
}
904
908
} catch ( e ) {
Original file line number Diff line number Diff line change @@ -672,6 +672,7 @@ export class K8 {
672
672
673
673
// add info for logging
674
674
server . info = `${ podName } :${ podPort } -> ${ constants . LOCAL_HOST } :${ localPort } `
675
+ this . logger . debug ( `Starting port-forwarder [${ server . info } ]` )
675
676
return server . listen ( localPort , constants . LOCAL_HOST )
676
677
}
677
678
You can’t perform that action at this time.
0 commit comments