Skip to content

Commit

Permalink
github also breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
keevie authored and dyaa committed Feb 8, 2024
1 parent 2479c88 commit 03a5801
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import * as fs from 'fs';

import sslChecker from "./";

const wordpressHost = "developer.wordpress.org";

const githubHost = "github.com";
const validSslHost = "badssl.com";
const expiredSSlHost = "expired.badssl.com";
const wrongHostDomain = "wrong.host.badssl.com";
Expand Down Expand Up @@ -70,7 +69,7 @@ describe("sslChecker", () => {
if (process.platform !== 'linux') return
await new Promise((r) => setTimeout(r, 2000));
const openFdsBefore = fs.readdirSync('/proc/self/fd').length - 1;
await sslChecker(wordpressHost, { method: "HEAD", port: 443 })
await sslChecker(githubHost, { method: "HEAD", port: 443 })
await new Promise((r) => setTimeout(r, 1000));
const openFdsAfter = fs.readdirSync('/proc/self/fd').length - 1;
expect(openFdsBefore).toEqual(openFdsAfter);
Expand All @@ -80,7 +79,7 @@ describe("sslChecker", () => {
if (process.platform !== 'linux') return
await new Promise((r) => setTimeout(r, 2000));
const openFdsBefore = fs.readdirSync('/proc/self/fd').length - 1;
await sslChecker(wordpressHost, { method: "GET", port: 443 })
await sslChecker(githubHost, { method: "GET", port: 443 })
await new Promise((r) => setTimeout(r, 1000));
const openFdsAfter = fs.readdirSync('/proc/self/fd').length - 1;
expect(openFdsBefore).toEqual(openFdsAfter);
Expand Down

0 comments on commit 03a5801

Please sign in to comment.