From 10afb1bf159b2953522eb2ca5ae2d48ca78aa67f Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 19 Feb 2026 16:38:48 -0800 Subject: [PATCH] Deflake fetch.tls.test.ts in asan --- test/js/web/fetch/fetch.tls.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/js/web/fetch/fetch.tls.test.ts b/test/js/web/fetch/fetch.tls.test.ts index b5d94445f5..b3d8ee6fac 100644 --- a/test/js/web/fetch/fetch.tls.test.ts +++ b/test/js/web/fetch/fetch.tls.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from "bun:test"; -import { bunEnv, bunExe, tmpdirSync } from "harness"; +import { bunEnv, bunExe, isASAN, tmpdirSync } from "harness"; import { join } from "node:path"; import tls from "node:tls"; @@ -263,7 +263,7 @@ describe.concurrent("fetch-tls", () => { }); const start = performance.now(); const TIMEOUT = 200; - const THRESHOLD = 150; + const THRESHOLD = 150 * (isASAN ? 2 : 1); // ASAN can be very slow, so we need to increase the threshold for it try { await fetch(server.url, {