Skip to content

Commit 855e7d6

Browse files
committed
use native path separator
fixes the test on Windows
1 parent b0a8246 commit 855e7d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/index/IndexDatabaseTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,9 @@ void testHistoryBasedReindexWithEligibleSubRepo() throws Exception {
651651
assertNotNull(fileCollector);
652652
assertTrue(fileCollector.getFiles().size() > 1);
653653
assertTrue(fileCollector.getFiles().
654-
contains("/" + gitProject.getName() + "/" + subRepoName + "/" + changedFileName));
654+
contains(File.separator + gitProject.getName() +
655+
File.separator + subRepoName +
656+
File.separator + changedFileName));
655657
}
656658

657659
/**

0 commit comments

Comments
 (0)