Yunchi Luo

Results 56 comments of Yunchi Luo
trafficstars

> Delay testing remains the same as any other suspend function. You either need to take control of virtual time and assert against the effects of delayed code, measure virtual...

`expectMostRecentItem` works if you expect your flow to produce just one more item. I don't believe that would be the case for many flows, particularly non-finite flows. I agree it's...

> I explained its use above as a guard against hung tests due to mismatched item emission and awaits such that the failure exception indicates the problematic await. I didn't...

Here's the test modified to measure how long it took to run ```kotlin @Test fun failsOnDefaultTimeout() = runTest { val took = measureTime { neverFlow().test { val actual = assertFailsWith...

@JakeWharton @jingibus I'm wondering if there's enough evidence shown here that it would be safe to add an option to Turbine to do timeouts in virtual time instead of wall...

> The existing timeout not running on wall clock time is just a bug that needs fixed. Someone will get to it eventually. What bug is this? If you are...