Skip to content

Commit 076b5f8

Browse files
author
nadavleva
committed
Fix flaky VRG test by waiting for deletion to complete (issue #2294)
1 parent ad52f81 commit 076b5f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/controller/vrg_recipe_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package controllers_test
66
import (
77
"context"
88
"strings"
9+
"time"
910

1011
volrep "github.com/csi-addons/kubernetes-csi-addons/api/replication.storage/v1alpha1"
1112
. "github.com/onsi/ginkgo/v2"
@@ -249,7 +250,7 @@ var _ = Describe("VolumeReplicationGroupRecipe", func() {
249250
}
250251
vrgDelete := func() {
251252
Expect(k8sClient.Delete(ctx, vrg)).To(Succeed())
252-
Eventually(vrgGet).Should(MatchError(k8serrors.NewNotFound(
253+
Eventually(vrgGet, time.Second*10, time.Millisecond*100).Should(MatchError(k8serrors.NewNotFound(
253254
schema.GroupResource{
254255
Group: ramen.GroupVersion.Group,
255256
Resource: "volumereplicationgroups",

0 commit comments

Comments
 (0)