Skip to content

Commit c0e2957

Browse files
committed
* Ensure connection is closed in TLS/SSL tests.
1 parent 973e5da commit c0e2957

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

projects/Test/Integration/TestConnectionShutdown.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
using System;
3333
using System.IO;
34+
using System.Threading.Channels;
3435
using System.Threading.Tasks;
3536
using RabbitMQ.Client;
3637
using RabbitMQ.Client.Exceptions;
@@ -109,6 +110,10 @@ public async Task TestDisposedWithSocketClosedOutOfBand()
109110
await WaitAsync(tcs, WaitSpan, "channel shutdown");
110111
await frameHandlerCloseTask.WaitAsync(WaitSpan);
111112
}
113+
catch (ChannelClosedException)
114+
{
115+
_output.WriteLine("[INFO] saw ChannelClosedException");
116+
}
112117
finally
113118
{
114119
_conn = null;

0 commit comments

Comments
 (0)