diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/SMTestProxy.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/SMTestProxy.java index a55834f4be64..ab80c9d89f4e 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/SMTestProxy.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/SMTestProxy.java @@ -263,6 +263,8 @@ public class SMTestProxy extends AbstractTestProxy { if (myLocationMapCachedValue == null) { myLocationMapCachedValue = CachedValuesManager.getManager(project).createCachedValue(() -> { Map> value = ContainerUtil.newConcurrentMap(1); + // we need `put` here to has actual counts of modification tracker AFTER `getLocation` call + value.put(searchScope, Ref.create(getLocation(project, searchScope, myLocationUrl))); return CachedValueProvider.Result.create(value, myLocator.getLocationCacheModificationTracker(project)); }, false); }