dividend_suite_test.go 706 字节
/**
   @author: stevechan
   @date: 2021/2/7
   @note:
**/

package dividend

import (
	"github.com/astaxie/beego"
	"github.com/onsi/ginkgo"
	"github.com/onsi/gomega"
	"net/http"
	"net/http/httptest"
	"testing"

	_ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/pg"
	_ "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/port/appsvr"
)

func TestConfig(t *testing.T) {
	gomega.RegisterFailHandler(ginkgo.Fail)
	ginkgo.RunSpecs(t, "Beego Port Dividend Correlations Test Case Suite")
}

var handler http.Handler
var server *httptest.Server

var _ = ginkgo.BeforeSuite(func() {
	handler = beego.BeeApp.Handlers
	server = httptest.NewServer(handler)
})

var _ = ginkgo.AfterSuite(func() {
	server.Close()
})