Skip to content

Commit

Permalink
e2e flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
britaniar committed Jul 8, 2024
1 parent 1de8a1b commit e9cc80d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ var _ = Describe("webhook tests for ClusterResourceOverride CREATE operations re
Consistently(func(g Gomega) error {
cro1 := &placementv1alpha1.ClusterResourceOverride{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("test-cro-%d", GinkgoParallelProcess()),
Name: fmt.Sprintf("test-create-cro-%d", GinkgoParallelProcess()),
},
Spec: placementv1alpha1.ClusterResourceOverrideSpec{
ClusterResourceSelectors: []placementv1beta1.ClusterResourceSelector{
Expand Down Expand Up @@ -695,9 +695,9 @@ var _ = Describe("webhook tests for ClusterResourceOverride CREATE operations re
})
})

var _ = Describe("webhook tests for CRO UPDATE operations", Ordered, func() {
var _ = Describe("webhook tests for ClusterResourceOverride UPDATE operations", Ordered, func() {
croName := fmt.Sprintf(croNameTemplate, GinkgoParallelProcess())
cro1Name := fmt.Sprintf("test-cro-%d", GinkgoParallelProcess())
cro1Name := fmt.Sprintf("test-update-cro-%d", GinkgoParallelProcess())
cro := &placementv1alpha1.ClusterResourceOverride{
ObjectMeta: metav1.ObjectMeta{
Name: croName,
Expand Down Expand Up @@ -1079,7 +1079,7 @@ var _ = Describe("webhook tests for ResourceOverride CREATE operations resource
By("create 2nd resourceOverride with same resource selection")
ro1 := &placementv1alpha1.ResourceOverride{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("test-ro-%d", GinkgoParallelProcess()),
Name: fmt.Sprintf("test-create-ro-%d", GinkgoParallelProcess()),
Namespace: roNamespace,
},
Spec: placementv1alpha1.ResourceOverrideSpec{
Expand Down Expand Up @@ -1126,7 +1126,7 @@ var _ = Describe("webhook tests for ResourceOverride CREATE operations resource

var _ = Describe("webhook tests for ResourceOverride UPDATE operations", Ordered, func() {
roName := fmt.Sprintf(roNameTemplate, GinkgoParallelProcess())
ro1Name := fmt.Sprintf("test-ro-%d", GinkgoParallelProcess())
ro1Name := fmt.Sprintf("test-update-ro-%d", GinkgoParallelProcess())
roNamespace := fmt.Sprintf(workNamespaceNameTemplate, GinkgoParallelProcess())
selector := placementv1alpha1.ResourceSelector{
Group: "apps",
Expand Down Expand Up @@ -1201,7 +1201,7 @@ var _ = Describe("webhook tests for ResourceOverride UPDATE operations", Ordered
By("creating a new resource override")
ro1 := &placementv1alpha1.ResourceOverride{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("test-ro-%d", GinkgoParallelProcess()),
Name: ro1Name,
Namespace: roNamespace,
},
Spec: placementv1alpha1.ResourceOverrideSpec{
Expand Down

0 comments on commit e9cc80d

Please sign in to comment.