test(admin): relax object-lambda SNI test timeout under full-suite load (#5923)

The SNI preservation test is the only object-lambda test doing a real
TLS handshake; the shared helper's 2s whole-request timeout turns
concurrent fsync-heavy TestECStoreEnv neighbors into a deterministic
TimedOut when the per-build nextest schedule overlaps them. The test
verifies SNI, not latency, so widen its budget to a still-bounded 30s.
This commit is contained in:
唐小鸭
2026-08-10 22:20:34 +08:00
committed by GitHub
parent 3c31eaf06f
commit 320b788a50
+5
View File
@@ -4671,6 +4671,11 @@ mod tests {
Url::parse(&format!("https://object-lambda.test:{}/transform", address.port())).expect("object lambda TLS endpoint");
let mut config = object_lambda_test_config(endpoint.clone());
config.client_ca = ca_path.to_string_lossy().into_owned();
// This is the only object-lambda test that performs a real TLS
// handshake; under a full-suite nextest run the CPU contention from
// neighboring tests pushes it past the helper's tight 2s request
// deadline. SNI preservation, not latency, is under test here.
config.response_header_timeout = Some(Duration::from_secs(30));
let response = build_object_lambda_http_client_with_resolver(&config, StaticResolver(address.ip()))
.expect("object lambda TLS client should build")