This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 17aed67  camel-websocket: 
WebsocketEndpointConfigurationTest#testSetServletNoMinThreadsNoMaxThreadsNoThreadPool:
 check that enough CPUs are available for this test to pass
17aed67 is described below

commit 17aed67ba5e49dba9ae1cc0fd747e3d94556235a
Author: Pascal Schumacher <[email protected]>
AuthorDate: Mon Nov 13 23:16:40 2017 +0100

    camel-websocket: 
WebsocketEndpointConfigurationTest#testSetServletNoMinThreadsNoMaxThreadsNoThreadPool:
 check that enough CPUs are available for this test to pass
---
 .../camel/component/websocket/WebsocketEndpointConfigurationTest.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketEndpointConfigurationTest.java
 
b/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketEndpointConfigurationTest.java
index bf77196..69345ce 100644
--- 
a/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketEndpointConfigurationTest.java
+++ 
b/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketEndpointConfigurationTest.java
@@ -16,6 +16,8 @@
  */
 package org.apache.camel.component.websocket;
 
+import static org.junit.Assume.assumeTrue;
+
 import org.apache.camel.Consumer;
 import org.apache.camel.Processor;
 import org.apache.camel.component.websocket.WebsocketComponent.ConnectorRef;
@@ -74,6 +76,7 @@ public class WebsocketEndpointConfigurationTest extends 
CamelTestSupport {
     
     @Test
     public void testSetServletNoMinThreadsNoMaxThreadsNoThreadPool() throws 
Exception {
+        assumeTrue("At lease 18 CPUs available", 1 + 
Runtime.getRuntime().availableProcessors() * 2 >= 19);
         port = AvailablePortFinder.getNextAvailable(16331);
         String uri = "websocket://localhost:" + port + 
"/bar?bufferSize=25000&maxIdleTime=3000";
         WebsocketEndpoint websocketEndpoint = 
(WebsocketEndpoint)context.getEndpoint(uri);

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to