mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
22 lines
315 B
Go
22 lines
315 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestVideoDuration(t *testing.T) {
|
||
|
|
var (
|
||
|
|
aid int64 = 10097265
|
||
|
|
oid int64 = 1508
|
||
|
|
c = context.TODO()
|
||
|
|
)
|
||
|
|
Convey("", t, func() {
|
||
|
|
_, err := svr.videoDuration(c, aid, oid)
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
})
|
||
|
|
|
||
|
|
}
|