mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +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));
|
||||
|
||||
findModel.setCustomScope(GlobalSearchScope.fileScope(psiFile));
|
||||
int timeout = 400;
|
||||
int timeout = 600;
|
||||
PlatformTestUtil.startPerformanceTest("find usages in global", timeout, test).attempts(2).assertTiming();
|
||||
|
||||
findModel.setCustomScope(new LocalSearchScope(psiFile));
|
||||
|
||||
@@ -84,7 +84,7 @@ public class SpellcheckerPerformanceTest extends SpellcheckerInspectionTestCase
|
||||
assertEmpty(infos);
|
||||
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();
|
||||
assertEmpty(runLocalInspections());
|
||||
}).assertTiming();
|
||||
|
||||
Reference in New Issue
Block a user