Skip to content

withClue and assertSoftly interfere when concurrent coroutines start on the same thread #2790

@OliverO2

Description

@OliverO2

Kotest 5.1.0/JVM

When multiple concurrent coroutines start on the same thread, they share an ErrorCollector. Whenever they happen to resume on different threads sometime later, they mess up each other's clue stack and/or failure list. This is true regardless of whether the error collector's methods are thread-safe or not.

What is really required is a coroutine-local error collector.

PR upcoming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions