mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 14:32:22 +00:00
[FIXED JENKINS-22822] PeepholePermalink should maintain an in-memory cache of symlinks to avoid disk I/O.
This commit is contained in:
1 parent
8a79907280
commit
2ff7a905ac
3 files changed
+29
-5
No files matched your search
@@ -39,6 +39,7 @@ public class PeepholePermalinkTest {
|
||||
@Test public void symlinks() throws Exception {
|
||||
File link = new File(tmp.getRoot(), "link");
|
||||
PeepholePermalink.writeSymlink(link, "stuff");
|
||||
PeepholePermalink.symlinks.clear(); // so we actually test the filesystem
|
||||
assertEquals("stuff", PeepholePermalink.readSymlink(link));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user