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 {
231
231
RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
232
232
env .setSourceRoot (repository .getSourceRoot ());
233
233
env .setDataRoot (repository .getDataRoot ());
234
+ env .setHistoryEnabled (true );
234
235
env .setRepositories (repository .getSourceRoot ());
235
236
236
237
List <RepositoryInfo > repos = env .getRepositories ();
@@ -412,6 +413,7 @@ void testBug3430() throws Exception {
412
413
RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
413
414
env .setSourceRoot (repository .getSourceRoot ());
414
415
env .setDataRoot (repository .getDataRoot ());
416
+ RuntimeEnvironment .getInstance ().setIndexVersionedFilesOnly (false );
415
417
416
418
Project project = new Project ("bug3430" );
417
419
project .setPath ("/bug3430" );
@@ -431,6 +433,7 @@ void testIncrementalIndexAddRemoveFile() throws Exception {
431
433
RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
432
434
env .setSourceRoot (repository .getSourceRoot ());
433
435
env .setDataRoot (repository .getDataRoot ());
436
+ RuntimeEnvironment .getInstance ().setIndexVersionedFilesOnly (false );
434
437
435
438
// Make the test consistent. If run in sequence with other tests, env.hasProjects() returns true.
436
439
// The same should work for standalone test run.
You can’t perform that action at this time.
0 commit comments