message_test.go 512 B

123456789101112131415161718192021222324
  1. package service
  2. import (
  3. "testing"
  4. "context"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestServicesendCreateTaskMsg(t *testing.T) {
  8. var (
  9. rid = int64(1)
  10. flowID = int64(1)
  11. dispatchLimit = int64(1)
  12. bizid = int64(1)
  13. )
  14. convey.Convey("sendCreateTaskMsg", t, func(ctx convey.C) {
  15. err := s.sendCreateTaskMsg(context.TODO(), rid, flowID, dispatchLimit, bizid)
  16. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  17. ctx.So(err, convey.ShouldBeNil)
  18. })
  19. })
  20. }