archive_test.go 349 B

1234567891011121314151617181920
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. )
  6. func TestVideoDuration(t *testing.T) {
  7. var (
  8. aid int64 = 10097265
  9. oid int64 = 1508
  10. c = context.TODO()
  11. )
  12. d, err := svr.videoDuration(c, aid, oid)
  13. if err != nil {
  14. t.Errorf("s.videoDuration(%d %d) error(%v)", aid, oid, err)
  15. t.FailNow()
  16. }
  17. t.Logf("oid:%d duration:%d", oid, d)
  18. }