Skip to content

Commit 4b48b18

Browse files
committed
[test] Fix TestLanguageServers.testResourcesPathIsntTooLong Test output
1 parent f002ea8 commit 4b48b18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestLanguageServers.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) th
262262
@Override
263263
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
264264
String relativePathInsideBundle = pluginPath.relativize(file).toString();
265+
if (maxLocation.length() < relativePathInsideBundle.length()) {
266+
maxLocation.setLength(0);
267+
maxLocation.append(relativePathInsideBundle);
268+
}
265269
if (relativePathInsideBundle.length() > MAX_ALLOWED_RELATIVE_PATH) {
266270
tooLongPaths.put(relativePathInsideBundle, relativePathInsideBundle.length());
267271
}

0 commit comments

Comments
 (0)