@@ -468,7 +468,6 @@ suite("HttpClient tests", () => {
468468
469469 // eslint-disable-next-line @typescript-eslint/no-explicit-any
470470 sandbox . stub ( httpClient as any , "createProxyAgent" ) . returns ( {
471- isHttps : true ,
472471 // eslint-disable-next-line @typescript-eslint/no-explicit-any
473472 agent : { } as any ,
474473 } ) ;
@@ -493,16 +492,16 @@ suite("HttpClient tests", () => {
493492
494493 // eslint-disable-next-line @typescript-eslint/no-explicit-any
495494 sandbox . stub ( httpClient as any , "createProxyAgent" ) . returns ( {
496- isHttps : false ,
497495 // eslint-disable-next-line @typescript-eslint/no-explicit-any
498496 agent : { } as any ,
499497 } ) ;
500498
501499 const result = httpClient [ "setupConfigAndProxyForRequest" ] ( requestUrl , token ) ;
502500
503501 expect ( result . proxy ) . to . be . false ;
504- expect ( result . httpAgent ) . to . exist ;
505- expect ( result . httpsAgent ) . to . be . undefined ;
502+ // HTTPS request URL → httpsAgent, regardless of proxy scheme
503+ expect ( result . httpsAgent ) . to . exist ;
504+ expect ( result . httpAgent ) . to . be . undefined ;
506505 } ) ;
507506
508507 test ( "should log when proxy is found" , ( ) => {
@@ -518,7 +517,6 @@ suite("HttpClient tests", () => {
518517
519518 // eslint-disable-next-line @typescript-eslint/no-explicit-any
520519 sandbox . stub ( httpClient as any , "createProxyAgent" ) . returns ( {
521- isHttps : false ,
522520 // eslint-disable-next-line @typescript-eslint/no-explicit-any
523521 agent : { } as any ,
524522 } ) ;
0 commit comments