vip_test.go 419 B

1234567891011121314151617181920
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. var (
  8. testVipStatus int32 = 2
  9. testVipMid int64 = 110
  10. )
  11. //go test -test.v -test.run TestUpdateVipStatus
  12. func TestUpdateVipStatus(t *testing.T) {
  13. Convey("TestUpdateVipStatus update vip status", t, WithService(func(s *Service) {
  14. So(s.UpdateVipStatus(context.TODO(), testVipMid, testVipStatus), ShouldBeNil)
  15. }))
  16. }