jnr / jnr-unixsocket

UNIX domain sockets (AF_UNIX) for Java
Apache License 2.0
280 stars 75 forks source link

Smoke test fails sporadically on MacOS #87

Open headius opened 4 years ago

headius commented 4 years ago

Sometimes this smoke test fails, annoyingly often when I go to release.

Expected:

    [INFO] --- exec-maven-plugin:1.4.0:exec (execute) @ jnr-unixsocket ---
    connected to [family=PF_UNIX path=/tmp/fubar.sock]
    read from server: blah blah
    SUCCESS

Actual:

    [INFO] --- exec-maven-plugin:1.4.0:exec (execute) @ jnr-unixsocket ---
    Exception in thread "main" java.io.IOException: No such file or directory
        at jnr.unixsocket.UnixSocketChannel.doConnect(UnixSocketChannel.java:130)
        at jnr.unixsocket.UnixSocketChannel.connect(UnixSocketChannel.java:139)
        at jnr.unixsocket.UnixSocketChannel.open(UnixSocketChannel.java:68)
        at jnr.unixsocket.example.UnixClient.main(UnixClient.java:46)

Probably should look into why this happens. Re-running usually works.