You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
451 B

package service
import (
"context"
"flag"
"path/filepath"
"testing"
"github.com/smartystreets/goconvey/convey"
)
var s *Service
func init() {
flag.Parse()
dir, _ := filepath.Abs("../cmd/workflow-admin-develop.toml")
if err := flag.Set("conf", dir); err != nil {
panic(err)
}
s = New()
}
func TestPing(t *testing.T) {
convey.Convey("Ping", t, func() {
err := s.Ping(context.Background())
convey.So(err, convey.ShouldBeNil)
})
}