Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data race condition in nop producer during testing #194

Open
jbsmith7741 opened this issue Jan 11, 2024 · 0 comments
Open

Data race condition in nop producer during testing #194

jbsmith7741 opened this issue Jan 11, 2024 · 0 comments

Comments

@jbsmith7741
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant