do not pollute file name cache with 100K irrelevant names in tests

GitOrigin-RevId: 09dd4bcf94e0291ef59dfc769a89d643ffd94c19
This commit is contained in:
Alexey Kudravtsev
2019-08-12 19:04:15 +03:00
committed by intellij-monorepo-bot
parent ef95962ef7
commit 9647a2bda7
@@ -109,7 +109,7 @@ public class VirtualFilePointerRootsTest extends HeavyPlatformTestCase {
myVirtualFilePointerManager.shelveAllPointersIn(() -> {
for (int i = 0; i < 100_000; i++) {
myVirtualFilePointerManager.create(VfsUtilCore.pathToUrl("/a/b/c/d/" + i), disposable, listener);
String name = "xxx" + i;
String name = "xxx" + (i%20);
events.add(new VFileCreateEvent(this, temp, name, FileNameCache.storeName(name), false, null, null, true, null));
}
PlatformTestUtil.startPerformanceTest("vfp update", 7_500, () -> {