Dias
02/06/2019, 2:09 PMrunBlocking {}
in junit tests and you have assertEquals()
as the last call (or any kotlin test assertion) it doesn't work, because tests should have Unit
return type, but since asserEquals
returns stuff, junit doesn't pick up the test. What can I do? I can just put Unit
in the end of the call, but it does't look goodTsvetozar Bonev
02/06/2019, 2:10 PMDias
02/06/2019, 2:11 PMTsvetozar Bonev
02/06/2019, 2:11 PMDias
02/06/2019, 2:12 PMTsvetozar Bonev
02/06/2019, 2:12 PMTsvetozar Bonev
02/06/2019, 2:12 PMDias
02/06/2019, 2:12 PMDias
02/06/2019, 2:13 PMval x = runBlocking {}
within the test body doesn't look good eitherTsvetozar Bonev
02/06/2019, 2:14 PMPavlo Liapota
02/06/2019, 2:16 PMrunBlocking<Unit> { }
? 🙂Dias
02/06/2019, 2:18 PMDias
02/06/2019, 2:19 PMfun test(): Unit = runBlocking {}
Dias
02/06/2019, 2:19 PMDias
02/06/2019, 2:19 PMkarelpeeters
02/06/2019, 10:11 PM