Nikky
06/17/2021, 12:38 PMGlobalScope.launch
i see no log output at all
if i use promise
see all logs in a single line.. but the assertion seem to work.. somewhatCLOVIS
06/17/2021, 7:25 PMNikky
06/17/2021, 8:25 PMwindow
not defined or suchRob Murdock
06/17/2021, 10:12 PMRob Murdock
06/17/2021, 10:14 PM@Test
fun willOrganizeTestNicely() = GlobalScope.promise {
//test code here
}
the test will wait until the promise resolves before its done. When you don’t return a promise, you run the risk of the test “finishing” before the work is actually completedRob Murdock
06/17/2021, 10:18 PM