@@ -39,7 +39,6 @@ func Eventually(ctx context.Context, t testing.TB, condition func() bool, tick t
39
39
// EventuallyShort is a convenience function that runs Eventually with
40
40
// IntervalFast and times out after WaitShort.
41
41
func EventuallyShort (t testing.TB , condition func () bool ) bool {
42
- //nolint: gocritic
43
42
ctx , cancel := context .WithTimeout (context .Background (), WaitShort )
44
43
defer cancel ()
45
44
return Eventually (ctx , t , condition , IntervalFast )
@@ -48,7 +47,6 @@ func EventuallyShort(t testing.TB, condition func() bool) bool {
48
47
// EventuallyMedium is a convenience function that runs Eventually with
49
48
// IntervalMedium and times out after WaitMedium.
50
49
func EventuallyMedium (t testing.TB , condition func () bool ) bool {
51
- //nolint: gocritic
52
50
ctx , cancel := context .WithTimeout (context .Background (), WaitMedium )
53
51
defer cancel ()
54
52
return Eventually (ctx , t , condition , IntervalMedium )
@@ -57,7 +55,6 @@ func EventuallyMedium(t testing.TB, condition func() bool) bool {
57
55
// EventuallyLong is a convenience function that runs Eventually with
58
56
// IntervalSlow and times out after WaitLong.
59
57
func EventuallyLong (t testing.TB , condition func () bool ) bool {
60
- //nolint: gocritic
61
58
ctx , cancel := context .WithTimeout (context .Background (), WaitLong )
62
59
defer cancel ()
63
60
return Eventually (ctx , t , condition , IntervalSlow )
0 commit comments