Seed math/rand in TestMain before tests are executed

This commit is contained in:
Mikhail Mazurskiy
2018-10-11 21:57:43 +11:00
parent f5e9c0473c
commit 55bc668f8d
3 changed files with 4 additions and 2 deletions

View File

@@ -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)
}