Issue#11 Adjust ContentRepositoryTest by using runTest correctly instead of deprecated TestDispatcher

This commit is contained in:
Gergely Hegedus 2022-01-23 20:05:59 +02:00
parent 9700a09c95
commit 968ccb647d
2 changed files with 17 additions and 25 deletions

View file

@ -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())
}
}