github.com/mikelsr/quic-go@v0.36.1-0.20230701132136-1d9415b66898/internal/ackhandler/ackhandler_suite_test.go (about) 1 package ackhandler 2 3 import ( 4 "math/rand" 5 "testing" 6 7 "github.com/golang/mock/gomock" 8 . "github.com/onsi/ginkgo/v2" 9 . "github.com/onsi/gomega" 10 ) 11 12 func TestCrypto(t *testing.T) { 13 RegisterFailHandler(Fail) 14 RunSpecs(t, "AckHandler Suite") 15 } 16 17 var mockCtrl *gomock.Controller 18 19 var _ = BeforeSuite(func() { 20 rand.Seed(GinkgoRandomSeed()) 21 }) 22 23 var _ = BeforeEach(func() { 24 mockCtrl = gomock.NewController(GinkgoT()) 25 }) 26 27 var _ = AfterEach(func() { 28 mockCtrl.Finish() 29 })