From 1d0ac7f2b60e3d3d238e6d32093db3183529b187 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 5 Apr 2016 17:17:33 +0300 Subject: [PATCH] threshold changed to 40% --- .../testSrc/com/intellij/application/ApplicationImplTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-tests/testSrc/com/intellij/application/ApplicationImplTest.java b/platform/platform-tests/testSrc/com/intellij/application/ApplicationImplTest.java index 612b94558b41..4b58e04e343a 100644 --- a/platform/platform-tests/testSrc/com/intellij/application/ApplicationImplTest.java +++ b/platform/platform-tests/testSrc/com/intellij/application/ApplicationImplTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ public class ApplicationImplTest extends LightPlatformTestCase { int ratioPercent = (int)((l1 - l2) * 100.0 / l1); String msg = "acquireReadActionLock(" + l2 + "ms) vs runReadAction(" + l1 + "ms). Ratio: " + ratioPercent + "%"; System.out.println(msg); - if (Math.abs(ratioPercent) > 20) { + if (Math.abs(ratioPercent) > 40) { return "Suspiciously different times for " + msg +" (in "+(ratioPercent<0 ? "my" : "Maxim's") +" favor)"; } }