uquic/quic_suite_test.go
2022-10-11 16:38:44 +04:00

34 lines
516 B
Go

package quic
import (
"io"
"log"
"sync"
"testing"
"github.com/golang/mock/gomock"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func TestQuicGo(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "QUIC Suite")
}
var mockCtrl *gomock.Controller
var _ = BeforeEach(func() {
mockCtrl = gomock.NewController(GinkgoT())
// reset the sync.Once
connMuxerOnce = *new(sync.Once)
})
var _ = BeforeSuite(func() {
log.SetOutput(io.Discard)
})
var _ = AfterEach(func() {
mockCtrl.Finish()
})