mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 07:24:41 +00:00
Fix broken test
* Engine.java
tolerate (with return-false-forfailure rather than NPE) non-job directories
* EngineTest.java
use empty temp job directory rather than (possibly full-of-junk) general junit-tests directory
This commit is contained in:
1 parent
57c857d5c6
commit
b639873dae
2 files changed
+10
-3
No files matched your search
@@ -131,7 +131,7 @@ public class Engine {
|
||||
public boolean accept(File dir, String name) {
|
||||
return name.endsWith(".cxml");
|
||||
}});
|
||||
if(candidateConfigs.length == 0) {
|
||||
if(candidateConfigs==null || candidateConfigs.length == 0) {
|
||||
// no CXML file found!
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user