Skip to content

Commit a8114f7

Browse files
committed
WIP: debug example.testserver.host test failures
1 parent 2ba911b commit a8114f7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/integration/https.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ describe("When configured for HTTPS", () => {
112112
describe("with some hostnames excluded", () => {
113113

114114
let server = getLocal({
115+
debug: true,
115116
https: {
116117
keyPath: './test/fixtures/test-ca.key',
117118
certPath: './test/fixtures/test-ca.pem',
@@ -142,7 +143,10 @@ describe("When configured for HTTPS", () => {
142143
expect(body).to.equal("Mock response");
143144
});
144145

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');
146150
const response: http.IncomingMessage = await new Promise((resolve, reject) =>
147151
https.get({
148152
host: 'localhost',
@@ -151,9 +155,11 @@ describe("When configured for HTTPS", () => {
151155
headers: { 'Host': 'example.testserver.host' }
152156
}).on('response', resolve).on('error', reject)
153157
);
158+
console.log('got response');
154159

155160
expect(response.statusCode).to.equal(200);
156161
const body = (await streamToBuffer(response)).toString();
162+
console.log('got body');
157163
expect(body).to.include(
158164
"This domain is for use in illustrative examples in documents."
159165
);

0 commit comments

Comments
 (0)