mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-16 04:29:31 +00:00
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:
parent
bd60cc8608
commit
238597ed49
2 changed files with 3 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue