Commit e15fde8
[GH] Remove explicit Unit return when using runTest
`kotlinx.coroutines.test.runTest` returns a `kotlinx.coroutines.test.TestResult`. Per [its documentation](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-test-result/), JVM and native just type alias to Unit, but when targeting JS it returns a `Promise`. This explicit return type of `Unit` is therefore incorrect when targeting JS.
Test: ./gradlew test connectedCheck
Bug: 270612487
This is an imported pull request from #554.
Resolves #554
Github-Pr-Head-Sha: ed0a00b
GitOrigin-RevId: 155638a
Change-Id: I3333e47c9b8fee3e9a3cfc98171f5abc6e4003011 parent a938fb6 commit e15fde8
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- paging/paging-common/src/test/kotlin/androidx/paging
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
0 commit comments