properly initialise the random number generator in the integration tests

This commit is contained in:
Marten Seemann
2018-06-03 10:55:47 +08:00
parent 1fc6c5a14c
commit bc2163777f
3 changed files with 9 additions and 6 deletions

View File

@@ -1,15 +1,20 @@
package self_test
import (
"math/rand"
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
_ "github.com/lucas-clemente/quic-go/integrationtests/tools/testlog"
"testing"
)
func TestSelf(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Self integration tests")
}
var _ = BeforeSuite(func() {
rand.Seed(GinkgoRandomSeed())
})