test(ui): send Connection: close on every integration browser request (#46805)

* test(ui): close each federation spec API connection so the proxy cannot drop an idle keep-alive socket

* test(ui): send Connection: close on every integration browser spec API call

* test(ui): send Connection: close on every integration browser request from the Playwright config
This commit is contained in:
Mateo Wang 2026-10-16 01:11:57 +00:00 • committed by GitHub
parent bd60cc8608
commit 238597ed49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -23,6 +23,8 @@ export default defineConfig({
use: {
...devices["Desktop Chrome"],
baseURL: UI_BASE_URL,
// The proxy closes idle keep-alive sockets after 5s and a reused one fails with "socket hang up"
extraHTTPHeaders: { Connection: "close" },
actionTimeout: 15_000,
navigationTimeout: 30_000,
trace: "retain-on-failure",

View file

@ -12,7 +12,7 @@ import { captureRequestBody } from "../../helpers/roundTrip";
import { masterKey } from "../../helpers/traffic";
const master = masterKey();
const headers = { Authorization: `Bearer ${master}`, Connection: "close" };
const headers = { Authorization: `Bearer ${master}` };
const TOKEN = "USER_TOKEN";
type EnvVarStatus = {