File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 "os/user"
1010 "path"
1111 "testing"
12+ "time"
1213
1314 . "github.com/onsi/ginkgo"
1415 . "github.com/onsi/ginkgo/config"
@@ -23,7 +24,7 @@ const (
2324)
2425
2526func init () {
26- rand .Seed (GinkgoConfig . RandomSeed )
27+ rand .Seed (time . Now (). UnixNano () )
2728}
2829
2930func getRandAppName () string {
@@ -36,12 +37,12 @@ func TestTests(t *testing.T) {
3637}
3738
3839var (
39- testAdminUser = fmt .Sprintf ("test-admin-%d" , GinkgoConfig . RandomSeed )
40+ testAdminUser = fmt .Sprintf ("test-admin-%d" , rand . Intn ( 1000 ) )
4041 testAdminPassword = "asdf1234"
41- testAdminEmail = fmt .Sprintf ("test-admin-%d@deis.io" , GinkgoConfig . RandomSeed )
42- testUser = fmt .Sprintf ("test-%d" , GinkgoConfig . RandomSeed )
42+ testAdminEmail = fmt .Sprintf ("test-admin-%d@deis.io" , rand . Intn ( 1000 ) )
43+ testUser = fmt .Sprintf ("test-%d" , rand . Intn ( 1000 ) )
4344 testPassword = "asdf1234"
44- testEmail = fmt .Sprintf ("test-%d@deis.io" , GinkgoConfig . RandomSeed )
45+ testEmail = fmt .Sprintf ("test-%d@deis.io" , rand . Intn ( 1000 ) )
4546 url = getController ()
4647)
4748
You can’t perform that action at this time.
0 commit comments