File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/history Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -486,9 +486,10 @@ void testGetLastHistoryEntryRepoHistoryDisabled() throws Exception {
486486 assertTrue (file .exists ());
487487 HistoryGuru instance = HistoryGuru .getInstance ();
488488 Repository repository = instance .getRepository (file );
489+ assertNotNull (repository );
489490
490491 // HistoryGuru is final class so cannot be reasonably mocked with Mockito.
491- // In order to avoid getting the history from the cache, move the cache away for a bit.
492+ // In order to avoid getting the history from the cache, move the history cache directory aside for a bit.
492493 String dirName = CacheUtil .getRepositoryCacheDataDirname (repository , new FileHistoryCache ());
493494 assertNotNull (dirName );
494495 Path histPath = Path .of (dirName );
You can’t perform that action at this time.
0 commit comments