Skip to content

Commit 7facef1

Browse files
committed
Log temp files found
1 parent 81f5f36 commit 7facef1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/org/labkey/test/WebDriverWrapper.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,11 +2454,17 @@ public static File[] getNewFiles(int minFileCount, File downloadDir, @Nullable F
24542454
},
24552455
"File(s) did not appear in download dir: " + downloadDir.toString(), WAIT_FOR_PAGE);
24562456

2457+
List<File> tempFiles = new ArrayList<>();
24572458
waitFor(() -> {
24582459
final File[] files = downloadDir.listFiles(tempFilesFilter);
2460+
tempFiles.clear();
2461+
if (files != null)
2462+
{
2463+
tempFiles.addAll(Arrays.asList(files));
2464+
}
24592465
return files != null && files.length == 0;
24602466
},
2461-
"Temp files remain in download dir: " + downloadDir, WAIT_FOR_PAGE);
2467+
() -> "Temp files remain in download dir: " + downloadDir + ": " + tempFiles.stream().map(File::getName).collect(Collectors.joining(", ")), WAIT_FOR_PAGE);
24622468

24632469
MutableInt downloadSize = new MutableInt(-1);
24642470
MutableInt stabilityDuration = new MutableInt(0);

0 commit comments

Comments
 (0)