@@ -112,6 +112,7 @@ describe("When configured for HTTPS", () => {
112
112
describe ( "with some hostnames excluded" , ( ) => {
113
113
114
114
let server = getLocal ( {
115
+ debug : true ,
115
116
https : {
116
117
keyPath : './test/fixtures/test-ca.key' ,
117
118
certPath : './test/fixtures/test-ca.pem' ,
@@ -142,7 +143,10 @@ describe("When configured for HTTPS", () => {
142
143
expect ( body ) . to . equal ( "Mock response" ) ;
143
144
} ) ;
144
145
145
- it ( "skips the server for matching HTTPS requests" , async function ( ) {
146
+ it . only ( "skips the server for matching HTTPS requests" , async function ( ) {
147
+ this . timeout ( 10_000 ) ;
148
+
149
+ console . log ( 'sending request' ) ;
146
150
const response : http . IncomingMessage = await new Promise ( ( resolve , reject ) =>
147
151
https . get ( {
148
152
host : 'localhost' ,
@@ -151,9 +155,11 @@ describe("When configured for HTTPS", () => {
151
155
headers : { 'Host' : 'example.testserver.host' }
152
156
} ) . on ( 'response' , resolve ) . on ( 'error' , reject )
153
157
) ;
158
+ console . log ( 'got response' ) ;
154
159
155
160
expect ( response . statusCode ) . to . equal ( 200 ) ;
156
161
const body = ( await streamToBuffer ( response ) ) . toString ( ) ;
162
+ console . log ( 'got body' ) ;
157
163
expect ( body ) . to . include (
158
164
"This domain is for use in illustrative examples in documents."
159
165
) ;
0 commit comments