service_test.go 296 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_Ping(t *testing.T) {
  8. var err error
  9. var c = context.Background()
  10. Convey("test archive video", t, func() {
  11. if err = s.Ping(c); err != nil {
  12. t.Fail()
  13. }
  14. So(err, ShouldBeNil)
  15. })
  16. }