mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-13 06:04:02 +00:00
Seed math/rand in TestMain before tests are executed
This commit is contained in:
@@ -17,11 +17,14 @@ limitations under the License.
|
||||
package volume
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"k8s.io/kubernetes/test/integration/framework"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
framework.EtcdMain(m.Run)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user