1package quic 2 3import ( 4 "io/ioutil" 5 "log" 6 "sync" 7 "testing" 8 9 "github.com/golang/mock/gomock" 10 . "github.com/onsi/ginkgo" 11 . "github.com/onsi/gomega" 12) 13 14func TestQuicGo(t *testing.T) { 15 RegisterFailHandler(Fail) 16 RunSpecs(t, "QUIC Suite") 17} 18 19var mockCtrl *gomock.Controller 20 21var _ = BeforeEach(func() { 22 mockCtrl = gomock.NewController(GinkgoT()) 23 24 // reset the sync.Once 25 connMuxerOnce = *new(sync.Once) 26}) 27 28var _ = BeforeSuite(func() { 29 log.SetOutput(ioutil.Discard) 30}) 31 32var _ = AfterEach(func() { 33 mockCtrl.Finish() 34}) 35