go-common/app/admin/main/aegis/service/task_config_test.go
2019-04-22 02:59:20 +00:00

18 lines
441 B
Go

package service
import (
"github.com/smartystreets/goconvey/convey"
"testing"
)
func TestServiceWeightLog(t *testing.T) {
convey.Convey("WeightLog", t, func(ctx convey.C) {
result, cnt, err := s.WeightLog(cntx, 49, 1, 4)
t.Logf("cnt(%d) error(%v)", cnt, err)
ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
ctx.So(result, convey.ShouldNotBeNil)
})
})
}