Skip to content

Commit 568980d

Browse files
committed
delete the timestamp file up front
1 parent d291885 commit 568980d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opengrok-web/src/test/java/org/opengrok/web/PageConfigTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,10 @@ public String getPathInfo() {
679679
RuntimeEnvironment env = RuntimeEnvironment.getInstance();
680680
env.refreshDateForLastIndexRun();
681681
Path timestampPath = Path.of(env.getDataRootPath(), IndexTimestamp.TIMESTAMP_FILE_NAME);
682+
Files.deleteIfExists(timestampPath);
682683
if (createTimestamp) {
683684
Files.createFile(timestampPath);
684685
assertTrue(timestampPath.toFile().exists());
685-
} else {
686-
Files.deleteIfExists(timestampPath);
687686
}
688687

689688
PageConfig cfg = PageConfig.get(req);

0 commit comments

Comments
 (0)