go-common/app/admin/main/workflow/service/wlog_test.go

20 lines
385 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"fmt"
"testing"
"go-common/app/admin/main/workflow/model"
"github.com/smartystreets/goconvey/convey"
)
func TestLastLog(t *testing.T) {
convey.Convey("LastLog", t, func() {
logs, err := s.LastLog(context.Background(), []int64{2038}, []int{model.WLogModuleGroup})
convey.So(err, convey.ShouldBeNil)
fmt.Printf("%+v", logs[2038])
})
}