diff --git a/internal/controller/nats/controller_test.go b/internal/controller/nats/controller_test.go index 38481a12..f554ffd4 100644 --- a/internal/controller/nats/controller_test.go +++ b/internal/controller/nats/controller_test.go @@ -211,7 +211,7 @@ func Test_handleNATSCRAllowedCheck(t *testing.T) { Status: metav1.ConditionFalse, LastTransitionTime: metav1.Now(), Reason: string(natsv1alpha1.ConditionReasonForbidden), - Message: fmt.Sprintf(CreationNotAllowedMsg, givenAllowedNATS.Name, givenAllowedNATS.Namespace), + Message: fmt.Sprintf(fmt.Sprintf("Warning Forbidden %s", CreationNotAllowedMsg), givenAllowedNATS.Name, givenAllowedNATS.Namespace), }, } require.True(t, natsv1alpha1.ConditionsEquals(wantConditions, gotNATS.Status.Conditions))