diff --git a/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/TransportScenario.java b/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/TransportScenario.java index 53a54401491..7e3c8b868ba 100644 --- a/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/TransportScenario.java +++ b/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/TransportScenario.java @@ -66,7 +66,9 @@ import org.eclipse.jetty.util.log.Log; import org.eclipse.jetty.util.log.Logger; import org.eclipse.jetty.util.ssl.SslContextFactory; import org.eclipse.jetty.util.thread.QueuedThreadPool; +import org.junit.jupiter.api.Assumptions; +import static org.eclipse.jetty.http.client.Transport.UNIX_SOCKET; import static org.junit.jupiter.api.Assumptions.assumeTrue; public class TransportScenario @@ -102,8 +104,10 @@ public class TransportScenario assumeTrue(Files.exists(tmp) && Files.isDirectory(tmp)); sockFile = Files.createTempFile(tmp, "unix", ".sock"); } - Files.delete(sockFile); + + // Disable UNIX_SOCKET due to jnr/jnr-unixsocket#69. + Assumptions.assumeTrue(transport != UNIX_SOCKET); } public Optional getNetworkConnectorLocalPort()