https://kotlinlang.org logo
#arrow-contributors
Title
# arrow-contributors
l

Lukasz Kalnik

09/14/2022, 5:34 AM
Hello, anyone here with Windows who can try to reproduce this error? Unit test fails in NetworkEitherCallAdapterTest.kt:159 because of wrong exception type.
Test passes if the expected exception type is changed from
ConnectException
to its parent class,
SocketException
.
s

simon.vergauwen

09/14/2022, 6:28 AM
We're running these tests on a Windows machine on Github Actions afaik 🤔
l

Lukasz Kalnik

09/14/2022, 6:29 AM
Interesting
Maybe then the specific VM is atypical
JVM: 11.0.14.1 (Eclipse Adoptium 11.0.14.1+1)
@simon.vergauwen, how can I run the tests under another JVM in IntelliJ?
I downloaded the Temurin OpenJDK (Adoptium) and set the JAVA_HOME variable
But I'm not sure what IntelliJ's built in test runner uses and how to configure it.
s

simon.vergauwen

09/14/2022, 3:27 PM
Awesome that you're looking into this @Lukasz Kalnik 🙏
l

Lukasz Kalnik

09/14/2022, 3:29 PM
Thank you. No problem, happy to help. This is my original PR after all 😉
For some reason when I try to build the
arrow-core
project it now hangs for me in the Gradle configuration phase.
Doesn't matter which JDK I use.
But as you saw I created the PR, I think it's a safe bet and should fix the issue the original poster has.
s

simon.vergauwen

09/15/2022, 7:15 AM
The branch passing on CI hangs for you locally in Gradle? 😮 Must be some local cache issue 😕
Maybe by switching JDKs you ended up with some incorrect cache in Gradle
l

Lukasz Kalnik

09/15/2022, 9:54 AM
Maybe, thanks for the hint.
I'm on vacation now so might not react for the next two weeks ;)
s

simon.vergauwen

09/15/2022, 9:58 AM
Enjoy your well PTO! 😉
l

Lukasz Kalnik

09/15/2022, 10:06 AM
Thank you!
3 Views