@@ -42,7 +42,8 @@ namespace Test.Integration.ConnectionRecovery
42
42
{
43
43
public class TestConnectionRecovery : TestConnectionRecoveryBase
44
44
{
45
- public TestConnectionRecovery ( ITestOutputHelper output ) : base ( output )
45
+ public TestConnectionRecovery ( ITestOutputHelper output )
46
+ : base ( output , dispatchConsumersAsync : true )
46
47
{
47
48
}
48
49
@@ -60,8 +61,9 @@ Task MessageReceived(object sender, BasicDeliverEventArgs e)
60
61
return Task . CompletedTask ;
61
62
}
62
63
63
- string exchangeName = $ "ex-gh-1035-{ Guid . NewGuid ( ) } ";
64
- string queueName = $ "q-gh-1035-{ Guid . NewGuid ( ) } ";
64
+ var guid = Guid . NewGuid ( ) ;
65
+ string exchangeName = $ "ex-gh-1035-{ guid } ";
66
+ string queueName = $ "q-gh-1035-{ guid } ";
65
67
66
68
await _channel . ExchangeDeclareAsync ( exchange : exchangeName ,
67
69
type : "fanout" , durable : false , autoDelete : true ,
@@ -78,6 +80,9 @@ await _channel.ExchangeDeclareAsync(exchange: exchangeName,
78
80
79
81
_channel = await _conn . CreateChannelAsync ( ) ;
80
82
83
+ // NB: add this for debugging
84
+ // AddCallbackHandlers();
85
+
81
86
await _channel . ExchangeDeclareAsync ( exchange : exchangeName ,
82
87
type : "fanout" , durable : false , autoDelete : true ,
83
88
arguments : null ) ;
0 commit comments