coupon_test.go 423 B

12345678910111213141516171819202122
  1. package service
  2. import (
  3. "testing"
  4. "go-common/app/job/main/vip/model"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. //go test -test.v -test.run TestCouponNotify
  8. func TestCouponNotify(t *testing.T) {
  9. Convey("TestCouponNotify ", t, func() {
  10. o := &model.VipPayOrderNewMsg{
  11. OrderNo: "1807211806450011799",
  12. Status: model.SUCCESS,
  13. Mid: 1,
  14. }
  15. err := s.CouponNotify(c, o)
  16. So(err, ShouldBeNil)
  17. })
  18. }