Skip to content

Commit d206a3e

Browse files
authored
Fix ms function parameter (#2197)
1 parent ea587d9 commit d206a3e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎.golangci.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ linters:
2424
enable:
2525
- copyloopvar
2626
- dupword
27+
- durationcheck
2728
- ginkgolinter
2829
- gocritic
2930
- goimports

‎pkg/util/wait/backoff_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ func makeSpyTimer() SpyTimer {
4242
return SpyTimer{history: ptr.To([]time.Duration{}), Timer: timer}
4343
}
4444

45-
func ms(m time.Duration) time.Duration {
46-
return time.Millisecond * m
45+
func ms(m int) time.Duration {
46+
return time.Duration(m) * time.Millisecond
4747
}
4848

4949
func TestUntilWithBackoff(t *testing.T) {

0 commit comments

Comments
 (0)