Skip to content

Data race condition in nop producer during testing  #194

@jbsmith7741

Description

@jbsmith7741
Read at 0x00c000050020 by goroutine 93:
  github.com/pcelvng/task-tools/apps/taskmasters/flowlord.TestTaskMaster_Process.func1()
      /home/circleci/task-tools/apps/taskmasters/flowlord/taskmaster_test.go:42 +0x5c4
  github.com/hydronica/trial.(*Trial[go.shape.struct { Type string "json:\"type\""; Job string "json:\"job,omitempty\""; Info string "json:\"info\""; Created string "json:\"created,omitempty\""; ID string "json:\"id,omitempty\""; Meta string "json:\"meta,omitempty\""; Result github.com/pcelvng/task.Result "json:\"result,omitempty\""; Msg string "json:\"msg,omitempty\""; Started string "json:\"started,omitempty\""; Ended string "json:\"ended,omitempty\""; github.com/pcelvng/task.created time.Time; github.com/pcelvng/task.started time.Time; github.com/pcelvng/task.ended time.Time },go.shape.[]github.com/pcelvng/task.Task]).testCase.func1()
      /home/circleci/go/pkg/mod/github.com/hydronica/[email protected]/trial.go:148 +0x294

Previous write at 0x00c000050020 by goroutine 94:
  github.com/pcelvng/task/bus/nop.(*Producer).Send()
      /home/circleci/go/pkg/mod/github.com/pcelvng/[email protected]/bus/nop/producer.go:53 +0x413
  github.com/pcelvng/task-tools/apps/taskmasters/flowlord.(*taskMaster).Process.func1()
      /home/circleci/task-tools/apps/taskmasters/flowlord/taskmaster.go:322 +0x1e5

Goroutine 93 (running) created at:
  github.com/hydronica/trial.(*Trial[go.shape.struct { Type string "json:\"type\""; Job string "json:\"job,omitempty\""; Info string "json:\"info\""; Created string "json:\"created,omitempty\""; ID string "json:\"id,omitempty\""; Meta string "json:\"meta,omitempty\""; Result github.com/pcelvng/task.Result "json:\"result,omitempty\""; Msg string "json:\"msg,omitempty\""; Started string "json:\"started,omitempty\""; Ended string "json:\"ended,omitempty\""; github.com/pcelvng/task.created time.Time; github.com/pcelvng/task.started time.Time; github.com/pcelvng/task.ended time.Time },go.shape.[]github.com/pcelvng/task.Task]).testCase()
      /home/circleci/go/pkg/mod/github.com/hydronica/[email protected]/trial.go:133 +0x315
  github.com/hydronica/trial.(*Trial[go.shape.struct { Type string "json:\"type\""; Job string "json:\"job,omitempty\""; Info string "json:\"info\""; Created string "json:\"created,omitempty\""; ID string "json:\"id,omitempty\""; Meta string "json:\"meta,omitempty\""; Result github.com/pcelvng/task.Result "json:\"result,omitempty\""; Msg string "json:\"msg,omitempty\""; Started string "json:\"started,omitempty\""; Ended string "json:\"ended,omitempty\""; github.com/pcelvng/task.created time.Time; github.com/pcelvng/task.started time.Time; github.com/pcelvng/task.ended time.Time },go.shape.[]github.com/pcelvng/task.Task]).Test()
      /home/circleci/go/pkg/mod/github.com/hydronica/[email protected]/trial.go:116 +0x1d3
  github.com/pcelvng/task-tools/apps/taskmasters/flowlord.TestTaskMaster_Process()
      /home/circleci/task-tools/apps/taskmasters/flowlord/taskmaster_test.go:232 +0x1a18
  testing.tRunner()
      /usr/local/go/src/testing/testing.go:1595 +0x261
  testing.(*T).Run.func1()
      /usr/local/go/src/testing/testing.go:1648 +0x44

Goroutine 94 (finished) created at:
  github.com/pcelvng/task-tools/apps/taskmasters/flowlord.(*taskMaster).Process()
      /home/circleci/task-tools/apps/taskmasters/flowlord/taskmaster.go:319 +0x11ca
  github.com/pcelvng/task-tools/apps/taskmasters/flowlord.TestTaskMaster_Process.func1()
      /home/circleci/task-tools/apps/taskmasters/flowlord/taskmaster_test.go:37 +0x307
  github.com/hydronica/trial.(*Trial[go.shape.struct { Type string "json:\"type\""; Job string "json:\"job,omitempty\""; Info string "json:\"info\""; Created string "json:\"created,omitempty\""; ID string "json:\"id,omitempty\""; Meta string "json:\"meta,omitempty\""; Result github.com/pcelvng/task.Result "json:\"result,omitempty\""; Msg string "json:\"msg,omitempty\""; Started string "json:\"started,omitempty\""; Ended string "json:\"ended,omitempty\""; github.com/pcelvng/task.created time.Time; github.com/pcelvng/task.started time.Time; github.com/pcelvng/task.ended time.Time },go.shape.[]github.com/pcelvng/task.Task]).testCase.func1()
      /home/circleci/go/pkg/mod/github.com/hydronica/[email protected]/trial.go:148 +0x294

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions