File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ package main
2
2
3
3
import (
4
4
"context"
5
- "math/rand"
6
- "time"
7
-
8
5
"github.com/spf13/cobra"
9
6
"k8s.io/klog/v2"
10
7
@@ -22,9 +19,6 @@ func init() {
22
19
// To help debugging, immediately log version
23
20
klog .Info (version .String )
24
21
25
- //Setting seed for all the calls to rand methods in the code
26
- rand .Seed (time .Now ().UnixNano ())
27
-
28
22
if err := opts .Run (context .Background ()); err != nil {
29
23
klog .Fatalf ("error: %v" , err )
30
24
}
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ func TestEnsureJob_JobSpec_Selector(t *testing.T) {
414
414
switch r := recover (); r {
415
415
case nil :
416
416
if test .expectedPanic {
417
- t .Errorf (test . name + " should have panicked!" )
417
+ t .Errorf ("%s should have panicked!", test . name )
418
418
}
419
419
default :
420
420
if ! test .expectedPanic {
You can’t perform that action at this time.
0 commit comments