Skip to content

Commit c0eeccb

Browse files
committed
Bug 31680531 - Build: Tangosol.Net.Ssl.SslTest.TestSslClientAuthenticationException
[git-p4: depot-paths = "//dev/release.net/coherence-net-v14.1.1.0/": change = 99366]
1 parent d96e845 commit c0eeccb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/Coherence.Tests/Net/Ssl/SslTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public void TestSslServerAuthentication()
7171
}
7272

7373
[Test, RequiresThread]
74-
[ExpectedException(typeof(IOException))]
7574
public void TestSslClientAuthenticationException()
7675
{
7776
var location = new IPEndPoint(IPAddress.Loopback, 5055);
@@ -86,13 +85,17 @@ public void TestSslClientAuthenticationException()
8685
new SslClient(location)
8786
{
8887
ServerName = "MyServerName",
89-
Protocol = SslProtocols.Default
88+
Protocol = SslProtocols.None
9089
};
9190
try
9291
{
9392
client.Connect();
94-
Thread.Sleep(1000);
9593
string echo = client.Echo("Hello World");
94+
Assert.Fail("Expected Exception, but got none");
95+
}
96+
catch (Exception e)
97+
{
98+
Console.WriteLine("SslTests.TestSslClientAuthenticationException(), got expected exception: " + e.ToString());
9699
}
97100
finally
98101
{

0 commit comments

Comments
 (0)