Skip to content

Commit e20cc26

Browse files
committed
* Fix test
1 parent b06ecc0 commit e20cc26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/Test/Integration/TestAsyncConsumer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,6 @@ public async Task TestBasicAckAsync()
452452
});
453453
};
454454

455-
await _channel.ConfirmSelectAsync();
456-
457455
var consumer = new AsyncEventingBasicConsumer(_channel);
458456
consumer.Received += async (object sender, BasicDeliverEventArgs args) =>
459457
{
@@ -478,6 +476,8 @@ await _channel.BasicConsumeAsync(queue: queueName, autoAck: false,
478476
{
479477
using (IChannel publishChannel = await _conn.CreateChannelAsync())
480478
{
479+
await publishChannel.ConfirmSelectAsync();
480+
481481
for (int i = 0; i < messageCount; i++)
482482
{
483483
byte[] _body = _encoding.GetBytes(Guid.NewGuid().ToString());

0 commit comments

Comments
 (0)