archive_recheck_test.go 443 B

12345678910111213141516171819202122
  1. package archive
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. "go-common/app/job/main/videoup-report/model/archive"
  7. )
  8. func TestDao_TxAddRecheckAID(t *testing.T) {
  9. Convey("TxAddRecheckAID", t, func() {
  10. c := context.TODO()
  11. a, _ := d.ArchiveByAid(c, 1)
  12. tx, _ := d.BeginTran(c)
  13. id, err := d.TxAddRecheckAID(tx, archive.TypeChannelRecheck, a.ID)
  14. tx.Commit()
  15. So(err, ShouldBeNil)
  16. Println(id)
  17. })
  18. }