YARN-10041. Should not use AbstractPath to create unix domain socket (#1771)
This commit is contained in:
parent
d80d86264d
commit
0fed874adf
@ -20,7 +20,7 @@
|
||||
|
||||
import csi.v0.Csi;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.hadoop.test.GenericTestUtils;
|
||||
import com.google.common.io.Files;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Assume;
|
||||
@ -42,7 +42,7 @@ public class TestCsiClient {
|
||||
|
||||
@BeforeClass
|
||||
public static void setUp() throws IOException {
|
||||
testRoot = GenericTestUtils.getTestDir("csi-test");
|
||||
testRoot = Files.createTempDir();
|
||||
File socketPath = new File(testRoot, "csi.sock");
|
||||
FileUtils.forceMkdirParent(socketPath);
|
||||
domainSocket = "unix://" + socketPath.getAbsolutePath();
|
||||
|
Loading…
Reference in New Issue
Block a user