Skip to content

Commit

Permalink
Linter: dupword
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiss, Tibor committed Feb 28, 2024
1 parent 1acbc13 commit 91f8dff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ linters:
- varnamelen
- wrapcheck
- tagalign
- dupword
- gomoddirectives
- testifylint
- containedctx
Expand Down
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 Deleting the NATS cluster."},
wantK8sEvents: []string{"Normal Deleting the NATS cluster."},
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 Deleting the NATS cluster."},
wantK8sEvents: []string{"Normal Deleting the NATS cluster."},
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 Deleting the NATS cluster."},
wantK8sEvents: []string{"Normal Deleting the NATS cluster."},
wantResult: kcontrollerruntime.Result{},
},
{
Expand Down Expand Up @@ -128,7 +128,7 @@ func Test_handleNATSDeletion(t *testing.T) {
},
wantFinalizerExists: true,
wantK8sEvents: []string{
"Normal Deleting Deleting the NATS cluster.",
"Normal Deleting the NATS cluster.",
"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 Deleting the NATS cluster.",
"Normal Deleting the NATS cluster.",
"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 Deleting the NATS cluster.",
"Normal Deleting the NATS cluster.",
},
wantResult: kcontrollerruntime.Result{},
},
Expand Down

0 comments on commit 91f8dff

Please sign in to comment.