diff --git a/pkg/cluster/cluster_test.go b/pkg/cluster/cluster_test.go index 3cbb83d71320e9f980d35b0ab7250dfbe40ab077..6f10aae22c77ddc616c9e19fb2efa3c7d264af79 100644 --- a/pkg/cluster/cluster_test.go +++ b/pkg/cluster/cluster_test.go @@ -328,33 +328,3 @@ func TestShouldDeleteSecret(t *testing.T) { } } } - -/* -func TestSetStatus(t *testing.T) { - - tests := []struct { - status acidv1.PostgresStatus - outcome bool - }{ - { - status: acidv1.PostgresStatus{PostgresClusterStatus: acidv1.ClusterStatusCreating}, - outcome: cl.Status.Creating(), - }, - { - status: acidv1.PostgresStatus{PostgresClusterStatus: acidv1.ClusterStatusRunning}, - outcome: cl.Status.Running(), - }, - { - status: acidv1.PostgresStatus{PostgresClusterStatus: acidv1.ClusterStatusInvalid}, - outcome: !cl.Status.Success(), - }, - } - - for _, tt := range tests { - cl.setStatus(tt.status.PostgresClusterStatus) - if tt.outcome { - t.Errorf("Wrong status: %s", cl.Status.String()) - } - } -} -*/