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,13 @@ func TestTests(t *testing.T) {
3637}
3738
3839var (
39- testAdminUser = fmt .Sprintf ("test-admin-%d" , GinkgoConfig .RandomSeed )
40+ randSuffix = rand .Intn (1000 )
41+ testAdminUser = fmt .Sprintf ("test-admin-%d" , randSuffix )
4042 testAdminPassword = "asdf1234"
41- testAdminEmail = fmt .Sprintf ("test-admin-%d@deis.io" , GinkgoConfig . RandomSeed )
42- testUser = fmt .Sprintf ("test-%d" , GinkgoConfig . RandomSeed )
43+ testAdminEmail = fmt .Sprintf ("test-admin-%d@deis.io" , randSuffix )
44+ testUser = fmt .Sprintf ("test-%d" , randSuffix )
4345 testPassword = "asdf1234"
44- testEmail = fmt .Sprintf ("test-%d@deis.io" , GinkgoConfig . RandomSeed )
46+ testEmail = fmt .Sprintf ("test-%d@deis.io" , randSuffix )
4547 url = getController ()
4648)
4749
You can’t perform that action at this time.
0 commit comments