Skip to content

Commit 93555f8

Browse files
committed
fix unit-test
1 parent 4422991 commit 93555f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/controller/postgrescluster/pgbackrest_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3342,12 +3342,12 @@ func TestGenerateRestoreJobIntent(t *testing.T) {
33423342
})
33433343
}
33443344
t.Run("Env/EnvFrom", func(t *testing.T) {
3345-
t.Run(">= 2.8.0", func(t *testing.T) {
3345+
t.Run(">= 2.9.0", func(t *testing.T) {
33463346
t.Run("Manual", func(t *testing.T) {
33473347
cluster := &v1beta1.PostgresCluster{
33483348
ObjectMeta: metav1.ObjectMeta{
33493349
Labels: map[string]string{
3350-
naming.LabelVersion: "2.8.0",
3350+
naming.LabelVersion: "2.9.0",
33513351
},
33523352
},
33533353
Spec: v1beta1.PostgresClusterSpec{
@@ -3434,7 +3434,7 @@ func TestGenerateRestoreJobIntent(t *testing.T) {
34343434
cluster := &v1beta1.PostgresCluster{
34353435
ObjectMeta: metav1.ObjectMeta{
34363436
Labels: map[string]string{
3437-
naming.LabelVersion: "2.8.0",
3437+
naming.LabelVersion: "2.9.0",
34383438
},
34393439
},
34403440
Spec: v1beta1.PostgresClusterSpec{
@@ -3497,11 +3497,11 @@ func TestGenerateRestoreJobIntent(t *testing.T) {
34973497
})
34983498
})
34993499
})
3500-
t.Run("< 2.8.0", func(t *testing.T) {
3500+
t.Run("< 2.9.0", func(t *testing.T) {
35013501
cluster := &v1beta1.PostgresCluster{
35023502
ObjectMeta: metav1.ObjectMeta{
35033503
Labels: map[string]string{
3504-
naming.LabelVersion: "2.7.0",
3504+
naming.LabelVersion: "2.8.0",
35053505
},
35063506
},
35073507
Spec: v1beta1.PostgresClusterSpec{

0 commit comments

Comments
 (0)