From 03a5801328e145e666f52146d512f584da2c421d Mon Sep 17 00:00:00 2001 From: Daniel Dyssegaard Kallick Date: Wed, 7 Feb 2024 17:47:28 -0500 Subject: [PATCH] github also breaks --- src/index.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index b4310e8..c93442d 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -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"; @@ -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); @@ -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);