[FIXED JENKINS-22822] PeepholePermalink should maintain an in-memory cache of symlinks to avoid disk I/O.

This commit is contained in:
Jesse Glick committed 2014-05-27 22:10:57 -04:00
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));
}