Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public void domainSocket() throws Exception {
Assume.assumeTrue("We have a native transport available", FlightTestUtil.isNativeTransportAvailable());
final File domainSocket = File.createTempFile("flight-unit-test-", ".sock");
Assert.assertTrue(domainSocket.delete());
// Domain socket paths have a platform-dependent limit. Set a conservative limit and skip the test if the temporary
// file name is too long. (We do not assume a particular platform-dependent temporary directory path.)
Assume.assumeTrue("The domain socket path is not too long", domainSocket.getAbsolutePath().length() < 100);
final Location location = Location.forGrpcDomainSocket(domainSocket.getAbsolutePath());
try (
BufferAllocator a = new RootAllocator(Long.MAX_VALUE);
Expand Down