Skip to content

Commit 62b7890

Browse files
committed
adjust comment + add assert
1 parent 3423081 commit 62b7890

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/HistoryGuruTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)