Skip to content

Commit

Permalink
No lint for dupword
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiss, Tibor committed Feb 28, 2024
1 parent 0a417bf commit c2282b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/controller/nats/deprovisioner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func Test_handleNATSDeletion(t *testing.T) {
return natsClient
},
wantNATSStatusState: nmapiv1alpha1.StateDeleting,
wantK8sEvents: []string{"Normal Deleting the NATS cluster."},
wantK8sEvents: []string{"Normal Deleting Deleting the NATS cluster."}, //nolint: dupword // reason: This is the required result
wantResult: kcontrollerruntime.Result{},
},
{
Expand All @@ -78,7 +78,7 @@ func Test_handleNATSDeletion(t *testing.T) {
natsClient.On("Close").Return()
return natsClient
},
wantK8sEvents: []string{"Normal Deleting the NATS cluster."},
wantK8sEvents: []string{"Normal Deleting Deleting the NATS cluster."}, //nolint: dupword // reason: This is the required result
wantResult: kcontrollerruntime.Result{},
},
{
Expand All @@ -99,7 +99,7 @@ func Test_handleNATSDeletion(t *testing.T) {
natsClient.On("Close").Return()
return natsClient
},
wantK8sEvents: []string{"Normal Deleting the NATS cluster."},
wantK8sEvents: []string{"Normal Deleting Deleting the NATS cluster."}, //nolint: dupword // reason: This is the required result
wantResult: kcontrollerruntime.Result{},
},
{
Expand Down Expand Up @@ -128,7 +128,7 @@ func Test_handleNATSDeletion(t *testing.T) {
},
wantFinalizerExists: true,
wantK8sEvents: []string{
"Normal Deleting the NATS cluster.",
"Normal Deleting Deleting the NATS cluster.", //nolint: dupword // reason: This is the required result
"Warning DeletionError " + StreamExistsErrorMsg,
},
wantResult: kcontrollerruntime.Result{Requeue: true},
Expand Down Expand Up @@ -160,7 +160,7 @@ func Test_handleNATSDeletion(t *testing.T) {
},
wantFinalizerExists: true,
wantK8sEvents: []string{
"Normal Deleting the NATS cluster.",
"Normal Deleting Deleting the NATS cluster.", //nolint: dupword // reason: This is the required result
"Warning DeletionError " + ConsumerExistsErrorMsg,
},
wantResult: kcontrollerruntime.Result{Requeue: true},
Expand All @@ -184,7 +184,7 @@ func Test_handleNATSDeletion(t *testing.T) {
return natsClient
},
wantK8sEvents: []string{
"Normal Deleting the NATS cluster.",
"Normal Deleting Deleting the NATS cluster.", //nolint: dupword // reason: This is the required result
},
wantResult: kcontrollerruntime.Result{},
},
Expand Down

0 comments on commit c2282b1

Please sign in to comment.