mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
relax some performance test expectations to make them more robust locally
This commit is contained in:
@@ -596,10 +596,10 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
ThrowableRunnable test = () -> assertSize(lineCount, findUsages(findModel));
|
||||
|
||||
findModel.setCustomScope(GlobalSearchScope.fileScope(psiFile));
|
||||
PlatformTestUtil.startPerformanceTest("find usages in global", 70, test).attempts(2).usesAllCPUCores().assertTiming();
|
||||
PlatformTestUtil.startPerformanceTest("find usages in global", 400, test).attempts(2).usesAllCPUCores().assertTiming();
|
||||
|
||||
findModel.setCustomScope(new LocalSearchScope(psiFile));
|
||||
PlatformTestUtil.startPerformanceTest("find usages in local", 70, test).attempts(2).usesAllCPUCores().assertTiming();
|
||||
PlatformTestUtil.startPerformanceTest("find usages in local", 120, test).attempts(2).usesAllCPUCores().assertTiming();
|
||||
}
|
||||
finally {
|
||||
fixture.tearDown();
|
||||
|
||||
@@ -559,7 +559,7 @@ public class JavaStubBuilderTest extends LightIdeaTestCase {
|
||||
String text = FileUtil.loadFile(new File(path));
|
||||
PsiJavaFile file = (PsiJavaFile)createLightFile("test.java", text);
|
||||
String message = "Source file size: " + text.length();
|
||||
PlatformTestUtil.startPerformanceTest(message, 400, () -> myBuilder.buildStubTree(file)).assertTiming();
|
||||
PlatformTestUtil.startPerformanceTest(message, 500, () -> myBuilder.buildStubTree(file)).assertTiming();
|
||||
}
|
||||
|
||||
private void doTest(String source, String expected) {
|
||||
|
||||
@@ -244,7 +244,7 @@ public class ResolveClassTest extends ResolveTestCase {
|
||||
}
|
||||
|
||||
ensureIndexUpToDate();
|
||||
PlatformTestUtil.startPerformanceTest(getTestName(false), 150, () -> assertNull(ref.resolve()))
|
||||
PlatformTestUtil.startPerformanceTest(getTestName(false), 800, () -> assertNull(ref.resolve()))
|
||||
.attempts(1).assertTiming();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user