File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
tests/test/src/libdaemonjvm/tests Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import java.util.concurrent.CountDownLatch
13
13
import java .net .Socket
14
14
import java .util .concurrent .atomic .AtomicBoolean
15
15
import libdaemonjvm .internal .SocketFile
16
+ import scala .util .control .NonFatal
16
17
17
18
object TestUtil {
18
19
private lazy val testDirBase = {
@@ -90,7 +91,11 @@ object TestUtil {
90
91
}
91
92
finally {
92
93
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
+ }
94
99
for (e <- Option (maybeServerChannel); channel <- e)
95
100
channel.merge.close()
96
101
}
You can’t perform that action at this time.
0 commit comments