From 9647a2bda7dedc3c400b6e5f23d2e9ef35cd009a Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 12 Aug 2019 17:59:29 +0300 Subject: [PATCH] do not pollute file name cache with 100K irrelevant names in tests GitOrigin-RevId: 09dd4bcf94e0291ef59dfc769a89d643ffd94c19 --- .../intellij/openapi/vfs/impl/VirtualFilePointerRootsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerRootsTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerRootsTest.java index 6afe7af13fdf..dde5dbf50f31 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerRootsTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerRootsTest.java @@ -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, () -> {