@@ -149,8 +149,6 @@ describe('HttpsProxyAgent', function () {
149149 delete proxy . authenticate ;
150150 } ) ;
151151
152- it ( 'should receive the 407 authorization code on the `http.ClientResponse`' ) ;
153- /*
154152 it ( 'should receive the 407 authorization code on the `http.ClientResponse`' , function ( done ) {
155153 // set a proxy authentication function for this test
156154 proxy . authenticate = function ( req , fn ) {
@@ -170,20 +168,9 @@ describe('HttpsProxyAgent', function () {
170168 var req = http . get ( opts , function ( res ) {
171169 assert . equal ( 407 , res . statusCode ) ;
172170 assert ( 'proxy-authenticate' in res . headers ) ;
173- res.on('data', function () {
174- console.error('"data"', arguments);
175- });
176- res.on('end', function () {
177- console.error('"end"', arguments);
178- });
179171 done ( ) ;
180172 } ) ;
181-
182- req.on('close', function () {
183- console.error('"close"', arguments);
184- });
185173 } ) ;
186- */
187174 it ( 'should emit an "error" event on the `http.ClientRequest` if the proxy does not exist' , function ( done ) {
188175 // port 4 is a reserved, but "unassigned" port
189176 var proxyUri = 'http://127.0.0.1:4' ;
0 commit comments