Skip to content

Endless join of waitChildrenCompletion with TestViewModelScopeRule #23

@Tetraquark

Description

@Tetraquark

If some inheritor of ViewModel has any endless collectors of Flow (e.g. launch coroutine in init block for some Flow from abstract repository or collect data using extension asLiveData from moko-mvvm), then waitChildrenCompletion will start endless join of that endless collector coroutines. So, the test will never end.

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