Skip to content

Commit

Permalink
Issue #6291 Fix FileSessionDataStoreTest.testCleanOrphans (#6292)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bartel <janb@webtide.com>
  • Loading branch information
janbartel committed May 19, 2021
1 parent 61f4dbe commit 65ef393
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public File getFile(String sessionId) throws IOException
try (Stream<Path> s = Files.list(storeDirRoot))
{
return s
.filter((path) -> path.getFileName().toString().contains(sessionId))
.filter((path) -> path.getFileName().toString().endsWith("_" + sessionId))
.findFirst()
.map(Path::toFile)
.orElse(null);
Expand Down

0 comments on commit 65ef393

Please sign in to comment.