google-developer-training / basic-android-kotlin-compose-training-workmanager

Apache License 2.0
30 stars 31 forks source link

Advanced WorkManager and Testing #37

Open Xylia43 opened 4 weeks ago

Xylia43 commented 4 weeks ago

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.