@@ -22,7 +22,7 @@ import (
2222 "testing"
2323 "time"
2424
25- . "github.com/onsi/gomega"
25+ . "github.com/onsi/gomega" // nolint:revive
2626 "github.com/onsi/gomega/format"
2727 "github.com/onsi/gomega/types"
2828 "github.com/pkg/errors"
@@ -148,7 +148,7 @@ func TestSet(t *testing.T) {
148148 g .Expect (conditions ).To (haveSameConditionsOf (CreateList (unknownReady )))
149149
150150 for _ , tt := range tests {
151- t .Run (tt .name , func (t * testing.T ) {
151+ t .Run (tt .name , func (_ * testing.T ) {
152152
153153 conditions .Set (tt .condition )
154154
@@ -224,7 +224,7 @@ func TestRemove(t *testing.T) {
224224 g := NewWithT (t )
225225
226226 for _ , tt := range tests {
227- t .Run (tt .name , func (t * testing.T ) {
227+ t .Run (tt .name , func (_ * testing.T ) {
228228 tt .conditions .Remove (tt .cType )
229229 g .Expect (tt .expected ).To (haveSameConditionsOf (tt .conditions ))
230230 })
@@ -256,7 +256,7 @@ func TestReset(t *testing.T) {
256256 g := NewWithT (t )
257257
258258 for _ , tt := range tests {
259- t .Run (tt .name , func (t * testing.T ) {
259+ t .Run (tt .name , func (_ * testing.T ) {
260260 tt .conditions .Reset ()
261261 g .Expect (tt .expected ).To (haveSameConditionsOf (tt .conditions ))
262262 })
@@ -400,7 +400,7 @@ func TestAllSubConditionIsTrue(t *testing.T) {
400400 g .Expect (conditions ).To (haveSameConditionsOf (CreateList (unknownReady )))
401401
402402 for _ , tt := range tests {
403- t .Run (tt .name , func (t * testing.T ) {
403+ t .Run (tt .name , func (_ * testing.T ) {
404404
405405 conditions .Set (tt .condition )
406406 g .Expect (conditions .AllSubConditionIsTrue ()).To (BeIdenticalTo (tt .want ))
@@ -651,14 +651,14 @@ func TestRestoreLastTransitionTimes(t *testing.T) {
651651 // LastTransitionTime should change to time2 when HasSameCondition() passes.
652652 {
653653 name : "Same condition state" ,
654- patch : func (condition * Condition ) {},
654+ patch : func (_ * Condition ) {},
655655 want : time2 ,
656656 },
657657 }
658658
659659 g := NewWithT (t )
660660 for _ , tt := range tests {
661- t .Run (tt .name , func (t * testing.T ) {
661+ t .Run (tt .name , func (_ * testing.T ) {
662662 testCond := falseA .DeepCopy ()
663663 testCond .LastTransitionTime = time1
664664 conditions := CreateList (testCond )
0 commit comments