mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
raise performance test expected times to reduce flakiness
This commit is contained in:
@@ -595,7 +595,7 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
|||||||
ThrowableRunnable test = () -> assertSize(lineCount, findUsages(findModel));
|
ThrowableRunnable test = () -> assertSize(lineCount, findUsages(findModel));
|
||||||
|
|
||||||
findModel.setCustomScope(GlobalSearchScope.fileScope(psiFile));
|
findModel.setCustomScope(GlobalSearchScope.fileScope(psiFile));
|
||||||
int timeout = 400;
|
int timeout = 600;
|
||||||
PlatformTestUtil.startPerformanceTest("find usages in global", timeout, test).attempts(2).assertTiming();
|
PlatformTestUtil.startPerformanceTest("find usages in global", timeout, test).attempts(2).assertTiming();
|
||||||
|
|
||||||
findModel.setCustomScope(new LocalSearchScope(psiFile));
|
findModel.setCustomScope(new LocalSearchScope(psiFile));
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ public class SpellcheckerPerformanceTest extends SpellcheckerInspectionTestCase
|
|||||||
assertEmpty(infos);
|
assertEmpty(infos);
|
||||||
System.out.println("warm-up took " + (System.currentTimeMillis() - start) + " ms");
|
System.out.println("warm-up took " + (System.currentTimeMillis() - start) + " ms");
|
||||||
|
|
||||||
PlatformTestUtil.startPerformanceTest("many whitespaces highlighting", 4000, () -> {
|
PlatformTestUtil.startPerformanceTest("many whitespaces highlighting", 4500, () -> {
|
||||||
DaemonCodeAnalyzer.getInstance(getProject()).restart();
|
DaemonCodeAnalyzer.getInstance(getProject()).restart();
|
||||||
assertEmpty(runLocalInspections());
|
assertEmpty(runLocalInspections());
|
||||||
}).assertTiming();
|
}).assertTiming();
|
||||||
|
|||||||
Reference in New Issue
Block a user