Issue#11 Adjust ContentRepositoryTest by using runTest correctly instead of deprecated TestDispatcher
This commit is contained in:
parent
9700a09c95
commit
968ccb647d
2 changed files with 17 additions and 25 deletions
|
|
@ -78,7 +78,7 @@ internal class FavouriteContentLocalStorageImplTest {
|
|||
|
||||
sut.markAsFavourite(ContentId("a"))
|
||||
|
||||
Assert.assertEquals(expected, actual.await())
|
||||
Assert.assertEquals(expected, actual.getCompleted())
|
||||
}
|
||||
|
||||
/** GIVEN non empty database WHILE observing content WHEN favourite removed THEN change is emitted */
|
||||
|
|
@ -96,6 +96,6 @@ internal class FavouriteContentLocalStorageImplTest {
|
|||
|
||||
sut.deleteAsFavourite(ContentId("a"))
|
||||
|
||||
Assert.assertEquals(expected, actual.await())
|
||||
Assert.assertEquals(expected, actual.getCompleted())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue