Skip to content

Commit

Permalink
AND-81: rewrite TransformationsTest
Browse files Browse the repository at this point in the history
added by lazy
otherwise access to livedata was gained too soon
  • Loading branch information
sonulen committed Apr 27, 2024
1 parent b664ae9 commit fdb1de2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal class TransformationsTest {

private val liveData = MutableLiveData(42)

private val isOdd = liveData.mapDistinct { it % 2 != 0 }
private val isOdd by lazy { liveData.mapDistinct { it % 2 != 0 } }
private val values = mutableListOf<Boolean>()

@BeforeTest
Expand Down

0 comments on commit fdb1de2

Please sign in to comment.