wlog_test.go 385 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. "go-common/app/admin/main/workflow/model"
  7. "github.com/smartystreets/goconvey/convey"
  8. )
  9. func TestLastLog(t *testing.T) {
  10. convey.Convey("LastLog", t, func() {
  11. logs, err := s.LastLog(context.Background(), []int64{2038}, []int{model.WLogModuleGroup})
  12. convey.So(err, convey.ShouldBeNil)
  13. fmt.Printf("%+v", logs[2038])
  14. })
  15. }