openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1860927 - in /openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet: ProxyServletTest.java service/ConfigurationLoaderTest.java
Date Mon, 10 Jun 2019 07:58:30 GMT
Author: rmannibucau
Date: Mon Jun 10 07:58:30 2019
New Revision: 1860927

URL: http://svn.apache.org/viewvc?rev=1860927&view=rev
Log:
fixing test depending on the machine

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/ProxyServletTest.java
    openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/service/ConfigurationLoaderTest.java

Modified: openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/ProxyServletTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/ProxyServletTest.java?rev=1860927&r1=1860926&r2=1860927&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/ProxyServletTest.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/ProxyServletTest.java
Mon Jun 10 07:58:30 2019
@@ -76,7 +76,7 @@ public class ProxyServletTest {
             }));
 
     @ClassRule(order = 2)
-    public static final MeecrowaveRule MW = new MeecrowaveRule(new Meecrowave.Builder()
+    public static final MeecrowaveRule MW = new MeecrowaveRule(new Meecrowave.Builder().randomHttpPort()
             .property("proxy-configuration", "target/test-classes/routes.json"), "");
 
     @Test

Modified: openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/service/ConfigurationLoaderTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/service/ConfigurationLoaderTest.java?rev=1860927&r1=1860926&r2=1860927&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/service/ConfigurationLoaderTest.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-proxy/src/test/java/org/apache/meecrowave/proxy/servlet/service/ConfigurationLoaderTest.java
Mon Jun 10 07:58:30 2019
@@ -47,7 +47,7 @@ public class ConfigurationLoaderTest {
     public void ensureDefaults() {
         doLoad().map(routes -> {
             final Routes.Route route = routes.routes.iterator().next();
-            assertEquals(route.clientConfiguration.executor.core.intValue(), 8);
+            assertEquals(route.clientConfiguration.executor.core.intValue(), 2 * Runtime.getRuntime().availableProcessors());
             assertEquals(route.clientConfiguration.timeouts.read.longValue(), 30000);
             assertEquals(route.clientConfiguration.timeouts.connect.longValue(), 30000);
             return routes;



Mime
View raw message