File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/index Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ void testIndexWithSetIndexVersionedFilesOnly() throws Exception {
231231 RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
232232 env .setSourceRoot (repository .getSourceRoot ());
233233 env .setDataRoot (repository .getDataRoot ());
234+ env .setHistoryEnabled (true );
234235 env .setRepositories (repository .getSourceRoot ());
235236
236237 List <RepositoryInfo > repos = env .getRepositories ();
@@ -412,6 +413,7 @@ void testBug3430() throws Exception {
412413 RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
413414 env .setSourceRoot (repository .getSourceRoot ());
414415 env .setDataRoot (repository .getDataRoot ());
416+ RuntimeEnvironment .getInstance ().setIndexVersionedFilesOnly (false );
415417
416418 Project project = new Project ("bug3430" );
417419 project .setPath ("/bug3430" );
@@ -431,6 +433,7 @@ void testIncrementalIndexAddRemoveFile() throws Exception {
431433 RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
432434 env .setSourceRoot (repository .getSourceRoot ());
433435 env .setDataRoot (repository .getDataRoot ());
436+ RuntimeEnvironment .getInstance ().setIndexVersionedFilesOnly (false );
434437
435438 // Make the test consistent. If run in sequence with other tests, env.hasProjects() returns true.
436439 // The same should work for standalone test run.
You can’t perform that action at this time.
0 commit comments