Skip to content

Commit 85f2a92

Browse files
committed
fix(apps_test.go,package.go): use a real random number
1 parent 8c9acb6 commit 85f2a92

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

_tests/apps_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package _tests_test
33
import (
44
"fmt"
55
. "github.com/onsi/ginkgo"
6-
. "github.com/onsi/ginkgo/config"
76
. "github.com/onsi/gomega"
7+
"math/rand"
88
)
99

1010
func getRandAppName() string {
11-
return fmt.Sprintf("apps-test-%d", GinkgoConfig.RandomSeed)
11+
return fmt.Sprintf("apps-test-%d", rand.Int())
1212
}
1313

1414
var _ = Describe("Apps", func() {

_tests/package.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
// Package _tests contains integration tests for the Deis open source PaaS.
22
package _tests
3+
4+
import (
5+
"github.com/onsi/ginkgo/config"
6+
"math/rand"
7+
)
8+
9+
func init() {
10+
rand.Seed(config.GinkgoConfig.RandomSeed)
11+
}

0 commit comments

Comments
 (0)