Revision: d8f206e8ca0f
Author: George Vagenas <[email protected]>
Date: Tue Jul 2 11:01:12 2013
Log: Fixes issue 26
http://code.google.com/p/commscale/source/detail?r=d8f206e8ca0f&repo=load-balancer
Modified:
/jar/src/test/java/org/mobicents/tools/sip/balancer/performance/TcpForwardingPerformanceTest.java
/jar/src/test/java/org/mobicents/tools/sip/balancer/performance/UdpForwardingPerformanceTest.java
=======================================
---
/jar/src/test/java/org/mobicents/tools/sip/balancer/performance/TcpForwardingPerformanceTest.java
Tue Jul 2 09:19:28 2013
+++
/jar/src/test/java/org/mobicents/tools/sip/balancer/performance/TcpForwardingPerformanceTest.java
Tue Jul 2 11:01:12 2013
@@ -22,25 +22,19 @@
package org.mobicents.tools.sip.balancer.performance;
-import java.io.DataOutputStream;
-import java.io.IOException;
-import java.net.DatagramPacket;
-import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.Socket;
-import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Properties;
import junit.framework.TestCase;
-import org.mobicents.tools.sip.balancer.AppServer;
import org.mobicents.tools.sip.balancer.BalancerRunner;
import org.mobicents.tools.sip.balancer.BlackholeAppServer;
-import org.mobicents.tools.sip.balancer.operation.Shootist;
+
//BlackholeAppServer is causing excesive CPU usage. Disable this test for
now.
-public class TcpForwardingPerformanceTest extends TestCase
+public class TcpForwardingPerformanceTest //extends TestCase
{
static final String inviteRequest = "INVITE
sip:[email protected];transport=tcp SIP/2.0\r\n"+
"To: sip:[email protected]\r\n"+
@@ -72,7 +66,7 @@
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
- super.setUp();
+// super.setUp();
balancer = new BalancerRunner();
Properties properties = new Properties();
@@ -172,7 +166,7 @@
}
protected void tearDown() throws Exception {
- super.tearDown();
+// super.tearDown();
server.stop();
balancer.stop();
}
=======================================
---
/jar/src/test/java/org/mobicents/tools/sip/balancer/performance/UdpForwardingPerformanceTest.java
Tue Apr 19 04:47:21 2011
+++
/jar/src/test/java/org/mobicents/tools/sip/balancer/performance/UdpForwardingPerformanceTest.java
Tue Jul 2 11:01:12 2013
@@ -37,7 +37,9 @@
import org.mobicents.tools.sip.balancer.BlackholeAppServer;
import org.mobicents.tools.sip.balancer.operation.Shootist;
-public class UdpForwardingPerformanceTest extends TestCase {
+//BlackholeAppServer is causing excesive CPU usage. Disable this test for
now.
+public class UdpForwardingPerformanceTest //extends TestCase
+{
static final String inviteRequest = "INVITE sip:[email protected]
SIP/2.0\r\n"+
"To: sip:[email protected]\r\n"+
"From: sip:[email protected] ;tag=1234\r\n"+
@@ -75,7 +77,7 @@
* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
- super.setUp();
+// super.setUp();
shootist = new Shootist();
balancer = new BalancerRunner();
@@ -201,7 +203,7 @@
}
protected void tearDown() throws Exception {
- super.tearDown();
+// super.tearDown();
server.stop();
balancer.stop();
}
--
---
You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.