You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2021/04/21 21:00:45 UTC

[solr-operator] branch main updated: Fix flakey TestPersistentStorageVolumesRetain test

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new d2659b6  Fix flakey TestPersistentStorageVolumesRetain test
d2659b6 is described below

commit d2659b6899b12f33ed7c0bad4e8b6a093c6d1959
Author: Houston Putman <ho...@apache.org>
AuthorDate: Wed Apr 21 16:00:11 2021 -0500

    Fix flakey TestPersistentStorageVolumesRetain test
---
 controllers/solrcloud_controller_storage_test.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/controllers/solrcloud_controller_storage_test.go b/controllers/solrcloud_controller_storage_test.go
index e53c1d8..b4eb422 100644
--- a/controllers/solrcloud_controller_storage_test.go
+++ b/controllers/solrcloud_controller_storage_test.go
@@ -56,7 +56,7 @@ func TestPersistentStorageVolumesRetain(t *testing.T) {
 					VolumeReclaimPolicy: solr.VolumeReclaimPolicyRetain,
 					PersistentVolumeClaimTemplate: solr.PersistentVolumeClaimTemplate{
 						ObjectMeta: solr.TemplateMeta{
-							Name:   "other-data",
+							Name:   "other-data-1",
 							Labels: map[string]string{"base": "here"},
 						},
 					},
@@ -102,6 +102,7 @@ func TestPersistentStorageVolumesRetain(t *testing.T) {
 	defer testClient.Delete(context.TODO(), instance)
 	g.Eventually(requests, timeout).Should(gomega.Receive(gomega.Equal(expectedCloudRequest)))
 	g.Eventually(requests, timeout).Should(gomega.Receive(gomega.Equal(expectedCloudRequest)))
+	g.Eventually(requests, timeout).Should(gomega.Receive(gomega.Equal(expectedCloudRequest)))
 
 	// Fetch new value of instance to check finalizers
 	foundInstance := &solr.SolrCloud{}
@@ -141,7 +142,7 @@ func TestPersistentStorageVolumesDelete(t *testing.T) {
 					VolumeReclaimPolicy: solr.VolumeReclaimPolicyDelete,
 					PersistentVolumeClaimTemplate: solr.PersistentVolumeClaimTemplate{
 						ObjectMeta: solr.TemplateMeta{
-							Name:        "other-data",
+							Name:        "other-data-2",
 							Annotations: map[string]string{"base": "here"},
 						},
 					},