ziv kesten

12/31/2020, 7:28 AM
I am trying to test my VM which uses paging with
paging_compose_version = '1.0.0-alpha04'
In my unit test i am getting
from the VM, it would be supplied by a fake repository implementation using
However i cant seem to compare the PagingData objects. Here is the test:
Copy code
fun testPopularShowsPagedDataflow() = mainCoroutineRule.testDispatcher.runBlockingTest {

    val popularShowsPagedData: PagingData<Show> = sut.popularShowsPagedData.first()

    //Assert                                     // PagingData.from(mockList)
    assertThat("list", popularShowsPagedData == mockPagingDataOfPopularShows)
I tried the solution suggested at But it does not seem to work anymore, throwing:
Missing call to onListPresentable after new list was presented. If you are seeing this exception, it is generally an indication of an issue with Paging. Please file a bug so we can fix it at: <>
@Ian Lake