scalaz / scalaz-nio

Performant, purely-functional, low-level, and unopinionated wrapper around Java NIO functionality
Apache License 2.0
84 stars 29 forks source link

ChannelSuite fails when run multiple times #102

Open jczuchnowski opened 5 years ago

jczuchnowski commented 5 years ago

Noticed a weird behavior that when running test:run multiple times the test hangs. Tracked it down to the ChannelSuite. At some point it hangs with java.net.ConnectException: Connection refused

sbt:scalaz-nio> test:run
[info] Running scalaz.nio.Main 
Testing took 91ms.
[success] Total time: 1 s, completed Apr 23, 2019 2:10:51 AM
sbt:scalaz-nio> test:run
[info] Running scalaz.nio.Main 
Testing took 88ms.
[success] Total time: 0 s, completed Apr 23, 2019 2:10:52 AM
sbt:scalaz-nio> test:run
[info] Running scalaz.nio.Main 
Fail(java.net.ConnectException: Connection refused)