diff --git a/test/framework/src/main/java/org/elasticsearch/common/io/PathUtilsForTesting.java b/test/framework/src/main/java/org/elasticsearch/common/io/PathUtilsForTesting.java index e576d177066..5b00f9f2e86 100644 --- a/test/framework/src/main/java/org/elasticsearch/common/io/PathUtilsForTesting.java +++ b/test/framework/src/main/java/org/elasticsearch/common/io/PathUtilsForTesting.java @@ -30,7 +30,7 @@ public class PathUtilsForTesting { /** Sets a new default filesystem for testing */ public static void setup() { - installMock(LuceneTestCase.getBaseTempDirForTestClass().getFileSystem()); + installMock(LuceneTestCase.createTempDir().getFileSystem()); } /** Installs a mock filesystem for testing */