mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
increase timeout for pods to start
This commit is contained in:
parent
a651804427
commit
dab1325c29
@ -502,7 +502,7 @@ func testRSLifeCycle(f *framework.Framework) {
|
|||||||
_, err = f.ClientSet.AppsV1().ReplicaSets(ns).Patch(context.TODO(), rsName, types.StrategicMergePatchType, []byte(rsPatch), metav1.PatchOptions{})
|
_, err = f.ClientSet.AppsV1().ReplicaSets(ns).Patch(context.TODO(), rsName, types.StrategicMergePatchType, []byte(rsPatch), metav1.PatchOptions{})
|
||||||
framework.ExpectNoError(err, "failed to patch ReplicaSet")
|
framework.ExpectNoError(err, "failed to patch ReplicaSet")
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
_, err = watchtools.Until(ctx, rsList.ResourceVersion, w, func(event watch.Event) (bool, error) {
|
_, err = watchtools.Until(ctx, rsList.ResourceVersion, w, func(event watch.Event) (bool, error) {
|
||||||
if rset, ok := event.Object.(*appsv1.ReplicaSet); ok {
|
if rset, ok := event.Object.(*appsv1.ReplicaSet); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user