go-common/app/job/main/figure/service/vip_test.go
2019-04-22 18:49:16 +08:00

21 lines
419 B
Go

package service
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
var (
testVipStatus int32 = 2
testVipMid int64 = 110
)
//go test -test.v -test.run TestUpdateVipStatus
func TestUpdateVipStatus(t *testing.T) {
Convey("TestUpdateVipStatus update vip status", t, WithService(func(s *Service) {
So(s.UpdateVipStatus(context.TODO(), testVipMid, testVipStatus), ShouldBeNil)
}))
}