We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c9acb6 commit 85f2a92Copy full SHA for 85f2a92
2 files changed
_tests/apps_test.go
@@ -3,12 +3,12 @@ package _tests_test
3
import (
4
"fmt"
5
. "github.com/onsi/ginkgo"
6
- . "github.com/onsi/ginkgo/config"
7
. "github.com/onsi/gomega"
+ "math/rand"
8
)
9
10
func getRandAppName() string {
11
- return fmt.Sprintf("apps-test-%d", GinkgoConfig.RandomSeed)
+ return fmt.Sprintf("apps-test-%d", rand.Int())
12
}
13
14
var _ = Describe("Apps", func() {
_tests/package.go
@@ -1,2 +1,11 @@
1
// Package _tests contains integration tests for the Deis open source PaaS.
2
package _tests
+
+import (
+ "github.com/onsi/ginkgo/config"
+)
+func init() {
+ rand.Seed(config.GinkgoConfig.RandomSeed)
+}
0 commit comments