Skip to content

Commit faa89ae

Browse files
Ignore dummy error in tests
1 parent 95d42a6 commit faa89ae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test/src/libdaemonjvm/tests/TestUtil.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import java.util.concurrent.CountDownLatch
1313
import java.net.Socket
1414
import java.util.concurrent.atomic.AtomicBoolean
1515
import libdaemonjvm.internal.SocketFile
16+
import scala.util.control.NonFatal
1617

1718
object TestUtil {
1819
private lazy val testDirBase = {
@@ -90,7 +91,11 @@ object TestUtil {
9091
}
9192
finally {
9293
shouldStop.set(true)
93-
SocketFile.canConnect(files.socketPaths) // unblock the server thread last accept
94+
try SocketFile.canConnect(files.socketPaths) // unblock the server thread last accept
95+
catch {
96+
case NonFatal(e) =>
97+
System.err.println(s"Ignoring $e while trying to unblock last accept")
98+
}
9499
for (e <- Option(maybeServerChannel); channel <- e)
95100
channel.merge.close()
96101
}

0 commit comments

Comments
 (0)