Skip to content

kotlinx.coroutines.test compatibility #185

@sergeych

Description

@sergeych

New kotlinx.coroutines.test provides smart and convenientrunTest {} implementation, that provides sort of vurtual time, "eating" delay() calls and advancing "system" time accordingly, also providing advanceTimeBy(duration) convenienct method.

Clock.System.Now() as for now is not compatible with it so testing anything that uses kotlinx.datetime provides severe and hard to understand test-time bugs.

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