up_info_video_test.go 450 B

1234567891011121314151617181920212223
  1. package income
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_UpInfoVideo(t *testing.T) {
  8. Convey("update up_info_video score", t, WithService(func(s *Service) {
  9. var (
  10. mid = int64(1101)
  11. score = 100
  12. )
  13. tx, err := s.dao.BeginTran(context.Background())
  14. So(err, ShouldBeNil)
  15. err = s.TxUpdateUpInfoScore(tx, mid, score)
  16. So(err, ShouldBeNil)
  17. err = tx.Commit()
  18. So(err, ShouldBeNil)
  19. }))
  20. }