Skip to content

Commit 9812618

Browse files
committed
fail test interestingly
1 parent e814ecc commit 9812618

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/controller/postgrescluster/pgbouncer_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,14 @@ topologySpreadConstraints:
525525
assert.NilError(t, err)
526526
assert.Assert(t, specified)
527527

528-
assert.Assert(t, cmp.MarshalMatches(deploy.Spec.Template.Spec.Containers, `whoops`))
528+
for _, container := range deploy.Spec.Template.Spec.Containers {
529+
assert.Assert(t, cmp.MarshalContains(container.VolumeMounts,
530+
`whoops`))
531+
}
532+
533+
assert.Assert(t, cmp.MarshalContains(
534+
deploy.Spec.Template.Spec.Volumes,
535+
``))
529536
})
530537
}
531538

0 commit comments

Comments
 (0)