mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user