Using coroutines RC2 in a kmp library, I am seeing...
# coroutines
j
Using coroutines RC2 in a kmp library, I am seeing this error on my Windows machine.
Copy code
> Task :semver-core:linkDebugTestLinuxX64 FAILED
e: Compilation failed: Cannot get target from triple x86_64-unknown-linux-gnu.
I don't remember if Linux tests was running previously on Windows tbh 🤔
Copy code
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
Not sure why
2000 ms
, default one is:
Copy code
internal const val DEFAULT_DISPATCH_TIMEOUT_MS = 60_000L
d
The message you're seeing is from mochajs, this has nothing to do with the test module
j
I open an issue about it, https://github.com/Kotlin/kotlinx.coroutines/issues/3077 I only changed the runBlocking function to runTest. If previous implementation was working I would expect the new one to work out of the box
d
runBlocking
does not work on JS at all, so the previous implementation was not working.
j
Yeah, I was trying to fix the mocha issue, looks like triple issue is gone without changing anything. @Dmitry Khalanskiy [JB] do you think
runBlocking
will exist some day (not for tests, but I was using it in some Android use cases and I am moving the app to KMP)?
d