Fix FeedDAOTest

This commit is contained in:
Stypox 2023-12-29 10:54:31 +01:00
parent 845e72bf4a
commit 9220e32463
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 7 additions and 1 deletions

View File

@ -85,7 +85,13 @@ class FeedDAOTest {
private fun assertEqual(streams: List<StreamWithState>?, allowedStreams: List<StreamEntity>) { private fun assertEqual(streams: List<StreamWithState>?, allowedStreams: List<StreamEntity>) {
assertNotNull(streams) assertNotNull(streams)
assertEquals(allowedStreams, streams!!.stream().map { it.stream }.toList().sortedBy { it.uid }) assertEquals(
allowedStreams,
streams!!
.map { it.stream }
.sortedBy { it.uid }
.toList()
)
} }
private fun setupUnlinkDelete(time: String) { private fun setupUnlinkDelete(time: String) {