diff --git a/internal/controller/operator/eventing/controller_test.go b/internal/controller/operator/eventing/controller_test.go index 3a43b3d4..c0313fc4 100644 --- a/internal/controller/operator/eventing/controller_test.go +++ b/internal/controller/operator/eventing/controller_test.go @@ -452,8 +452,8 @@ func Test_stopNatsCRWatch(t *testing.T) { testEnv.Reconciler.stopNATSCRWatch(eventing) // Check the results - require.Equal(t, nil, testcase.watchNatsWatcher) - require.False(t, testcase.natsCRWatchStarted) + require.Nil(t, tc.watchNatsWatcher) + require.False(t, tc.natsCRWatchStarted) }) } }