service_test.go 252 B

123456789101112131415161718
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_Service(t *testing.T) {
  8. c := context.TODO()
  9. var err error
  10. s := New(nil)
  11. Convey("test", t, func() {
  12. s.Ping(c)
  13. So(err, ShouldBeNil)
  14. })
  15. }