diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2023-06-09 11:30:21 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-06-12 20:02:49 +0000 |
commit | 713f0434372e85f5273ab7b544ca616a0f379f44 (patch) | |
tree | 00d5c73d5d3afca0bff9e8c253c61b32c6d809f0 /sonar-plugin-api-impl/src/test/java | |
parent | a86f840b160eeeca5c712689321cf4b205da8256 (diff) | |
download | sonarqube-713f0434372e85f5273ab7b544ca616a0f379f44.tar.gz sonarqube-713f0434372e85f5273ab7b544ca616a0f379f44.zip |
SONAR-19532 PythonXUnitSensor takes too long due to non-optimized file query
Diffstat (limited to 'sonar-plugin-api-impl/src/test/java')
-rw-r--r-- | sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/fs/internal/predicates/DefaultFilePredicatesTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/fs/internal/predicates/DefaultFilePredicatesTest.java b/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/fs/internal/predicates/DefaultFilePredicatesTest.java index a9c81f2682c..17c6a424915 100644 --- a/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/fs/internal/predicates/DefaultFilePredicatesTest.java +++ b/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/fs/internal/predicates/DefaultFilePredicatesTest.java @@ -153,8 +153,7 @@ public class DefaultFilePredicatesTest { Files.touch(javaFile.file()); // relative file - Path workingDir = Paths.get(System.getProperty("user.dir")); - Path relativePath = workingDir.relativize(javaFile.path()); + Path relativePath = moduleBasePath.relativize(javaFile.path()); assertThat(predicates.is(relativePath.toFile()).apply(javaFile)).isTrue(); // absolute file |