Skip to content

Commit 0ceef0e

Browse files
committed
another test fix
1 parent 30a266b commit 0ceef0e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

internal/controller/standalone_pgadmin/users_test.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,16 @@ func TestWritePGAdminUsers(t *testing.T) {
266266
resources: { requests: { storage: 1Gi } },
267267
},
268268
}`)
269-
require.UnmarshalInto(t, &pgadmin.Status, `{
270-
imageSHA: "fakesha",
271-
majorVersion: 9,
272-
minorVersion: "9.3"
273-
}`)
274269
assert.NilError(t, cc.Create(ctx, pgadmin))
275270

271+
// fake the status so that the correct commands will be used when creating
272+
// users.
273+
pgadmin.Status = v1beta1.PGAdminStatus{
274+
ImageSHA: "fakesha",
275+
MajorVersion: 9,
276+
MinorVersion: "9.3",
277+
}
278+
276279
userPasswordSecret1 := &corev1.Secret{
277280
ObjectMeta: metav1.ObjectMeta{
278281
Name: "user-password-secret1",

0 commit comments

Comments
 (0)