mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #100759 from jsturtevant/replica-set-flake-issue-100725
Fix for Flaky test ReplicaSet Replace and Patch tests [Conformance]
This commit is contained in:
commit
5ad79eae2d
@ -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