Skip to content

Commit f3f6bb2

Browse files
committed
Restore exception when a connection cannot be closed by the HTTP API
1 parent 5c7a139 commit f3f6bb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

projects/Test/Common/Util.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public async Task CloseConnectionAsync(string connectionClientProvidedName)
9494

9595
if (connectionToClose == null)
9696
{
97-
_output.WriteLine("{0} [WARNING] could not find/delete connection: '{1}'",
98-
Now, connectionClientProvidedName);
97+
throw new InvalidOperationException(
98+
$"{Now} [ERROR] could not find/delete connection: '{connectionClientProvidedName}'");
9999
}
100100
}
101101

projects/Test/Integration/TestConnectionTopologyRecovery.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ public async Task TestTopologyRecoveryBindingFilter()
187187

188188
AutorecoveringConnection conn = await CreateAutorecoveringConnectionWithTopologyRecoveryFilterAsync(filter);
189189
conn.RecoverySucceeded += (source, ea) => tcs.SetResult(true);
190+
190191
IChannel ch = await conn.CreateChannelAsync();
192+
191193
try
192194
{
193195
string exchange = "topology.recovery.exchange";

0 commit comments

Comments
 (0)