Skip to content

Commit 6c16165

Browse files
committed
Fix incorrect test
1 parent 9fcff60 commit 6c16165

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

projects/Test/AsyncIntegration/TestBasicPublishAsync.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public async Task TestNonCopyingBody()
7878

7979
uint rentedBytes;
8080

81-
using (var result = await TrackRentedBytes())
81+
using (var result = await TrackRentedBytesAsync())
8282
{
8383
await _channel.BasicPublishAsync(string.Empty, q, body, copyBody: false);
8484
rentedBytes = result.RentedBytes;
@@ -101,7 +101,7 @@ public async Task TestCopyingBody()
101101

102102
uint rentedBytes;
103103

104-
using (var result = await TrackRentedBytes())
104+
using (var result = await TrackRentedBytesAsync())
105105
{
106106
await _channel.BasicPublishAsync(string.Empty, q, body, copyBody: true);
107107
rentedBytes = result.RentedBytes;
@@ -126,9 +126,9 @@ public async Task TestDefaultCopyingBody()
126126

127127
uint rentedBytes;
128128

129-
using (var result = await TrackRentedBytes())
129+
using (var result = await TrackRentedBytesAsync())
130130
{
131-
await _channel.BasicPublishAsync(string.Empty, q, body, copyBody: true);
131+
await _channel.BasicPublishAsync(string.Empty, q, body);
132132
rentedBytes = result.RentedBytes;
133133
}
134134

projects/Test/AsyncIntegration/TestBasicPublishCopyBodyAsync.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public async Task TestNonCopyingBody(ushort size)
2828

2929
uint rentedBytes;
3030

31-
using (var result = await TrackRentedBytes())
31+
using (var result = await TrackRentedBytesAsync())
3232
{
3333
await _channel.BasicPublishAsync(string.Empty, q, body);
3434
rentedBytes = result.RentedBytes;
@@ -51,7 +51,7 @@ public async Task TestCopyingBody(ushort size)
5151

5252
uint rentedBytes;
5353

54-
using (var result = await TrackRentedBytes())
54+
using (var result = await TrackRentedBytesAsync())
5555
{
5656
await _channel.BasicPublishAsync(string.Empty, q, body);
5757
rentedBytes = result.RentedBytes;

projects/Test/Common/IntegrationFixtureBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ protected void HandleChannelShutdown(IChannel ch, ShutdownEventArgs args, Action
342342
a(args);
343343
}
344344

345-
protected async Task<TrackRentedByteResult> TrackRentedBytes()
345+
protected async Task<TrackRentedByteResult> TrackRentedBytesAsync()
346346
{
347347
Connection connection;
348348

0 commit comments

Comments
 (0)