We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d2a76 commit 9294c04Copy full SHA for 9294c04
test/framework/src/main/java/org/elasticsearch/cluster/DiskUsageIntegTestCase.java
@@ -218,7 +218,12 @@ public FileStore getFileStore(Path path) {
218
}
219
220
TestFileStore getTestFileStore(Path path) {
221
- final TestFileStore fileStore = trackedPaths.get(path);
+ final TestFileStore fileStore = trackedPaths.entrySet()
222
+ .stream()
223
+ .filter(e -> path.startsWith(e.getKey()))
224
+ .map(Map.Entry::getValue)
225
+ .findAny()
226
+ .orElse(null);
227
if (fileStore != null) {
228
return fileStore;
229
0 commit comments