Skip to content

Advanced WorkManager and Testing #37

@Xylia43

Description

@Xylia43

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-verify-background-work?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-7-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-verify-background-work#7
Specify the language of the codelab if it is not English:

In which task and step of the codelab can this issue be found?
Advanced WorkManager and Testing ,step 8

Describe the problem
The SaveImageToFileWorker test cannot pass

Steps to reproduce?

  1. download the project from github, open it use Android studio
  2. open WorkerInstrumentationTest class
  3. run cleanupWorker_doWork_resultSuccess test, pass succeed
  4. run blurWorker_doWork_resultSuccessReturnsUri, pass succeed
  5. run blurWorker_doWork_resultSuccessReturnsUri, pass failed

Versions
_Android Studio version:_Android Studio Iguana | 2023.2.1 Patch 1
_API version of the emulator:_28

Additional information
Include screenshots if they would be useful in clarifying the problem.

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