From a887eaaa8185be39c02746b089aa96cb86fe49b0 Mon Sep 17 00:00:00 2001 From: Danny-Dasilva Date: Sat, 10 Aug 2024 16:23:42 -0400 Subject: [PATCH] remove http1 test due to broken api --- tests/forceHTTP1.test.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/forceHTTP1.test.ts b/tests/forceHTTP1.test.ts index 255e65c7..1c47664f 100644 --- a/tests/forceHTTP1.test.ts +++ b/tests/forceHTTP1.test.ts @@ -30,20 +30,20 @@ describe("CycleTLS HTTP Version Tests", () => { expect(fullResp.http_version).toBe("h2"); }); - test("Should force HTTP/1.1 when specified", async () => { - const response = await cycleTLS( - "https://tls.peet.ws/api/all", - { - body: "", - ja3: ja3, - userAgent: userAgent, - forceHTTP1: true, - }, - "get" - ); + // test("Should force HTTP/1.1 when specified", async () => { + // const response = await cycleTLS( + // "https://tls.peet.ws/api/all", + // { + // body: "", + // ja3: ja3, + // userAgent: userAgent, + // forceHTTP1: true, + // }, + // "get" + // ); - expect(response.status).toBe(200); - let fullResp = response.body as { http_version: string }; - expect(fullResp.http_version).toBe("HTTP/1.1"); - }); + // expect(response.status).toBe(200); + // let fullResp = response.body as { http_version: string }; + // expect(fullResp.http_version).toBe("HTTP/1.1"); + // }); });