raise performance test expected times to reduce flakiness

This commit is contained in:
peter
2018-07-24 12:23:16 +02:00
parent c4e7749444
commit 0ced42c18e
2 changed files with 2 additions and 2 deletions

View File

@@ -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));

View File

@@ -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();