android / codelab-kotlin-coroutines

Kotlin Coroutines codelab
Apache License 2.0
552 stars 268 forks source link

Section 12: Testing our CoroutineWorker : Not enough information to infer type variable T #178

Closed v79 closed 2 years ago

v79 commented 2 years ago

Got to the last stage but could not compile or execute the RefreshMainDataWorkTest test function.

The final assert is invalid:

assertThat(result).isEqualTo(Result.success())

Errors are:

No value passed for parameter 'value' Not enough information to infer type variable T

Not enough information for me to work out what is missing.

v79 commented 2 years ago

I think Android Studio defaulted to the wrong imports; if I copy-paste the imports from the instructions, the project works.