Skip to content

Commit 2338589

Browse files
ahornaceVladimir Kotal
authored andcommitted
Per project history test data fix
1 parent d76b660 commit 2338589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/org/opensolaris/opengrok/index/IndexerRepoTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ private void testPerProjectHistory(boolean globalOn) throws IndexerException, IO
124124
RuntimeEnvironment env = RuntimeEnvironment.getInstance();
125125

126126
// Make sure we start from scratch.
127-
File dataRoot = Files.createTempDirectory("dataForPerProjectHistoryTest").toFile();
128-
env.setDataRoot(dataRoot.getName());
127+
Path dataRoot = Files.createTempDirectory("dataForPerProjectHistoryTest");
128+
env.setDataRoot(dataRoot.toString());
129129
env.setProjectsEnabled(true);
130130
env.setHistoryEnabled(globalOn);
131131

@@ -164,7 +164,7 @@ private void testPerProjectHistory(boolean globalOn) throws IndexerException, IO
164164
assertNotNull(HistoryGuru.getInstance().getHistory(fileInRepo));
165165
}
166166

167-
IOUtils.removeRecursive(dataRoot.toPath());
167+
IOUtils.removeRecursive(dataRoot);
168168
}
169169

170170
/**

0 commit comments

Comments
 (0)