Skip to content

PublishedEvents should see events published from asynchronous event listeners, too #116

@odrotbohm

Description

@odrotbohm

Currently, PublishedEvents is backed by a ThreadLocal to isolate the test execution from others potentially running in parallel. That unfortunately means, that events published asynchronous event listeners are not seen by PublishedEvents as they are published by the task executing thread.

We should switch to an InheritableThreadLocal for the event capturing to see all events that originate in threads spawned by the test executing one as well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions