Skip to content

Unit test compilation fails with deprecated TestCoroutineDispatcher APIs #131

@PhilippThaler

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions