Skip to content

Commit 72059cc

Browse files
authored
SegmentLocalCacheManagerConcurrencyTest: Use tempDir for temp files. (#18937)
The tests should use temporary directories rather than the current working directory.
1 parent 35caa62 commit 72059cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/apache/druid/segment/loading/SegmentLocalCacheManagerConcurrencyTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void testAcquireSegment() throws IOException, ExecutionException, Interru
255255
@Test
256256
public void testAcquireSegmentFailTooManySegments() throws IOException
257257
{
258-
final File localStorageFolder = new File("local_storage_folder");
258+
final File localStorageFolder = new File(tempDir, "local_storage_folder");
259259

260260
final Interval interval = Intervals.of("2019-01-01/P1D");
261261
makeSegmentsToLoad(20, localStorageFolder, interval, segmentsToLoad);
@@ -281,7 +281,7 @@ public void testAcquireSegmentFailTooManySegments() throws IOException
281281
@Test
282282
public void testAcquireSegmentBulkFailTooManySegments() throws IOException
283283
{
284-
final File localStorageFolder = new File("local_storage_folder");
284+
final File localStorageFolder = new File(tempDir, "local_storage_folder");
285285

286286
final Interval interval = Intervals.of("2019-01-01/P1D");
287287
makeSegmentsToLoad(30, localStorageFolder, interval, segmentsToLoad);

0 commit comments

Comments
 (0)