mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 04:57:56 +00:00
test/e2e: drop deprecated rand.Seed()
Just drop it, bump to golang v1.20 will cause the generator to be automatically seeded at program startup: https://pkg.go.dev/math/rand@go1.20#Seed
This commit is contained in:
parent
1b8ab4b862
commit
cc57fa6a93
1 changed files with 0 additions and 3 deletions
|
@ -19,10 +19,8 @@ package e2e
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
|
|
||||||
"k8s.io/kubernetes/test/e2e"
|
"k8s.io/kubernetes/test/e2e"
|
||||||
"k8s.io/kubernetes/test/e2e/framework"
|
"k8s.io/kubernetes/test/e2e/framework"
|
||||||
|
@ -63,7 +61,6 @@ func TestMain(m *testing.M) {
|
||||||
testfiles.AddFileSource(testfiles.RootFileSource{Root: framework.TestContext.RepoRoot})
|
testfiles.AddFileSource(testfiles.RootFileSource{Root: framework.TestContext.RepoRoot})
|
||||||
}
|
}
|
||||||
|
|
||||||
rand.Seed(time.Now().UnixNano())
|
|
||||||
os.Exit(m.Run())
|
os.Exit(m.Run())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue