test/integration/apiserver/discovery: give convergence more time

The discovery integration tests can time out while waiting for APIService
cleanup and group-version removal to converge. In CI this shows up in
TestCRD/Race and TestCRD/CRDAPIServiceSameGroupDifferentVersions while
waiting for stale discovery state to disappear.

Increase the shared discovery timeout so the tests continue to verify the
same cleanup and convergence behavior with more headroom on slower
runners.
This commit is contained in:
Davanum Srinivas
2026-03-17 09:12:04 -04:00
parent 814da5384f
commit a4fe5e0295

View File

@@ -46,7 +46,9 @@ const acceptV1JSON = "application/json"
const acceptV2JSON = "application/json;g=apidiscovery.k8s.io;v=v2;as=APIGroupDiscoveryList"
const acceptV2JSONNoPeer = "application/json;g=apidiscovery.k8s.io;v=v2;as=APIGroupDiscoveryList;profile=nopeer"
const maxTimeout = 30 * time.Second
// Discovery integration tests frequently need to wait through aggregator,
// API registration, and discovery document convergence on contended CI nodes.
const maxTimeout = 120 * time.Second
type testClient interface {
kubernetes.Interface