Fix performance test on Windows (yes it sucks)

This commit is contained in:
Roman Shevchenko
2012-10-03 09:12:20 +02:00
parent df0ea58b3a
commit a6dd4cf98c
@@ -15,6 +15,7 @@
*/
package com.intellij.openapi.util.text;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.testFramework.PlatformTestUtil;
import com.intellij.util.ThrowableRunnable;
import org.junit.Test;
@@ -30,7 +31,7 @@ public class StringUtilPerformanceTest {
public void containsAnyChar() throws Exception {
assertTrue(StringUtil.containsAnyChar(TEST_STRING, Integer.toString(new Random().nextInt())));
PlatformTestUtil.startPerformanceTest("StringUtil.containsAnyChar()", 200, new ThrowableRunnable() {
PlatformTestUtil.startPerformanceTest("StringUtil.containsAnyChar()", SystemInfo.isWindows ? 500 : 200, new ThrowableRunnable() {
@Override
public void run() throws Throwable {
for (int i = 0; i < 1000000; i++) {