Merge pull request #7353 from gdicristofaro/carvedFilesTestFix

carved file test fix
This commit is contained in:
Richard Cordovano 2021-10-15 09:06:33 -04:00 committed by GitHub
commit 5b7a46df95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ public class IngestFileFiltersTest extends NbTestCase {
String errMsg = String.format("File %s (objId=%d) unexpectedly blocked by the file filter.", file.getName(), file.getId());
assertTrue(errMsg, file.getMIMEType() != null && !file.getMIMEType().isEmpty());
if (file.getParentPath().equalsIgnoreCase("/$CarvedFiles/")) {
if (file.getParentPath().startsWith("/$CarvedFiles/")) {
carvedJpgGifFiles++;
}
} else if (file.getName().startsWith("Unalloc_")) {