Skip to content

Commit 69961dc

Browse files
fix MockServerTest.testIsMockServerCanUpgradeConnectionToSsl()
This is another method that is causing Jenkins to fail for almost a month
1 parent 49923a6 commit 69961dc

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

services/console-proxy-rdp/rdpconsole/src/test/java/rdpclient/MockServerTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
import javax.net.ssl.SSLSocket;
3030
import javax.net.ssl.SSLSocketFactory;
3131

32-
import junit.framework.TestCase;
33-
3432
import org.junit.Test;
3533

34+
import junit.framework.TestCase;
3635
import streamer.debug.MockServer;
3736
import streamer.debug.MockServer.Packet;
3837

@@ -93,7 +92,6 @@ public void testIsMockServerCanRespond() throws Exception {
9392

9493
@Test
9594
public void testIsMockServerCanUpgradeConnectionToSsl() throws Exception {
96-
9795
final byte[] mockClientData1 = new byte[] {0x01, 0x02, 0x03};
9896
final byte[] mockServerData1 = new byte[] {0x03, 0x02, 0x01};
9997

@@ -161,8 +159,7 @@ public void testIsMockServerCanUpgradeConnectionToSsl() throws Exception {
161159

162160
final SSLSocketFactory sslSocketFactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
163161
SSLSocket sslSocket = (SSLSocket)sslSocketFactory.createSocket(socket, address.getHostName(), address.getPort(), true);
164-
//sslSocket.setEnabledCipherSuites(sslSocket.getSupportedCipherSuites());
165-
sslSocket.setEnabledCipherSuites(new String[] { "SSL_DH_anon_WITH_3DES_EDE_CBC_SHA" });
162+
sslSocket.setEnabledCipherSuites(sslSocket.getSupportedCipherSuites());
166163
sslSocket.startHandshake();
167164

168165
InputStream is = sslSocket.getInputStream();

0 commit comments

Comments
 (0)