Hi, I have been trying to test a database query wh...
# room
h
Hi, I have been trying to test a database query which returns a PagingSource<>. Issue is how do I collect the value or list of data from the get query as the return type of query is pagingSource? I have tried the solution mentioned here -: https://stackoverflow.com/a/68320495/9607296 But the problem is this test keeps on running and never stops
1
Ok I went through this thread here and added
Copy code
.setQueryExecutor(Dispatchers.IO.asExecutor())
while initialising/building my DB and finally my tests have passed. But the problem is I have have no idea why adding this has passed my test? Can someone please throw some light on it? Thanks Using Room 2.4.1