File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/index Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -735,5 +735,23 @@ void testInitialReindexWithHistoryBased() throws Exception {
735
735
checkIndexDown (false , idb );
736
736
}
737
737
738
- // TODO: test project-less configuration with history based reindex
738
+ /**
739
+ * project-less configuration should lead to file-system based reindex.
740
+ */
741
+ @ Test
742
+ void testProjectLessReindexVsHistoryBased () throws Exception {
743
+ env .setProjectsEnabled (false );
744
+
745
+ // Make a change in the git repository.
746
+ File repositoryRoot = new File (repository .getSourceRoot (), "git" );
747
+ assertTrue (repositoryRoot .isDirectory ());
748
+ changeGitRepository (repositoryRoot );
749
+
750
+ IndexDatabase idbOrig = new IndexDatabase ();
751
+ assertNotNull (idbOrig );
752
+ IndexDatabase idb = spy (idbOrig );
753
+ idb .update ();
754
+
755
+ checkIndexDown (false , idb );
756
+ }
739
757
}
You can’t perform that action at this time.
0 commit comments