alexp11223
05/26/2017, 8:00 PMval vm = TokensViewModel()
init {
FxToolkit.registerPrimaryStage()
}
@Test
fun loadsTokens() {
vm.loadTokens()
await().atMost(10000, MILLISECONDS).until { !vm.status.running.value }
assertNotEquals(0, vm.tokens.size)
}
but I am not completely sure why and how it works.
And looks like it is polling status
not from UI thread