Skip to content

Unit test compilation fails with deprecated TestCoroutineDispatcher APIs #131

Closed

Description

@PhilippThaler

The unit test suite fails to compile due to deprecated dispatcher methods.

'fun pauseDispatcher(): Unit' is deprecated. Please use a dispatcher that is paused by default, like StandardTestDispatcher.

It happens in test files like eu.opencloud.android.presentation.viewmodels.DrawerViewModelTest because it uses deprecated methods like kotlinx.coroutines.test.TestCoroutineDispatcher#pauseDispatcher()

All affected tests should be updated to use StandardTestDispatcher to fix the compilation issues.

Activity

  1. guruz commented on May 7, 2026

    @guruz
    Contributor

    Thank you!
    abbe7a7

  2. self-assigned this
    on May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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