There was an error while loading. Please reload this page.
1 parent ea587d9 commit d206a3eCopy full SHA for d206a3e
.golangci.yaml
@@ -24,6 +24,7 @@ linters:
24
enable:
25
- copyloopvar
26
- dupword
27
+ - durationcheck
28
- ginkgolinter
29
- gocritic
30
- goimports
pkg/util/wait/backoff_test.go
@@ -42,8 +42,8 @@ func makeSpyTimer() SpyTimer {
42
return SpyTimer{history: ptr.To([]time.Duration{}), Timer: timer}
43
}
44
45
-func ms(m time.Duration) time.Duration {
46
- return time.Millisecond * m
+func ms(m int) time.Duration {
+ return time.Duration(m) * time.Millisecond
47
48
49
func TestUntilWithBackoff(t *testing.T) {
0 commit comments