Skip to content

Commit 083eb1a

Browse files
committed
fix unit test; add no lint option to make structcheck happy
1 parent 0852ca5 commit 083eb1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/controller/operators/olm/operator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ func TestTransitionCSV(t *testing.T) {
880880

881881
type csvState struct {
882882
exists bool
883-
phase v1alpha1.ClusterServiceVersionPhase
883+
phase v1alpha1.ClusterServiceVersionPhase //nolint:structcheck
884884
reason v1alpha1.ConditionReason
885885
}
886886
type operatorConfig struct {

pkg/controller/operators/openshift/clusteroperator_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ var _ = Describe("ClusterOperator controller", func() {
156156
Type: configv1.OperatorUpgradeable,
157157
Status: configv1.ConditionFalse,
158158
Reason: ErrorCheckingOperatorCompatibility,
159-
Message: "Encountered errors while checking compatibility with the next minor version of OpenShift: Desired release version missing from ClusterVersion",
159+
Message: "Encountered errors while checking compatibility with the next minor version of OpenShift: desired release version missing from ClusterVersion",
160160
LastTransitionTime: fixedNow(),
161161
}))
162162

0 commit comments

Comments
 (0)