Skip to content

Commit 73047ce

Browse files
committed
set test requirements
1 parent fd3f887 commit 73047ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/index/IndexerTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)