mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 14:08:30 -05:00
20 lines
296 B
Go
20 lines
296 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func Test_Ping(t *testing.T) {
|
||
|
|
var err error
|
||
|
|
var c = context.Background()
|
||
|
|
Convey("test archive video", t, func() {
|
||
|
|
if err = s.Ping(c); err != nil {
|
||
|
|
t.Fail()
|
||
|
|
}
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
})
|
||
|
|
}
|