bilibili-backup/app/job/main/figure/service/vip_test.go

21 lines
419 B
Go
Raw Normal View History

2019-04-22 10:59:20 +08:00
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)
}))
}