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.
28 lines
361 B
28 lines
361 B
package service |
|
|
|
import ( |
|
"flag" |
|
"testing" |
|
|
|
"go-common/app/job/main/relation/conf" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
var s *Service |
|
|
|
func init() { |
|
flag.Parse() |
|
|
|
if err := conf.Init(); err != nil { |
|
panic(err) |
|
} |
|
|
|
s = New(conf.Conf) |
|
} |
|
|
|
func TestService_Close(t *testing.T) { |
|
Convey("Close", t, func() { |
|
So(s.Close(), ShouldBeNil) |
|
}) |
|
}
|
|
|