Skip to content

Commit 47c0fa9

Browse files
committed
Revert await using
1 parent 3dfb43c commit 47c0fa9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Lucene.Net.Tests.Replicator/Http/HttpClientBaseTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ public async Task ObtainFileAsync_WhenBodyReadFails_DisposesResponse()
250250

251251
try
252252
{
253-
await using var stream = await replicator.ObtainFileAsync("s", "src", "file.dat");
253+
// ReSharper disable once UseAwaitUsing - not supported on .NET Framework
254+
using var stream = await replicator.ObtainFileAsync("s", "src", "file.dat");
254255
fail("expected exception");
255256
}
256257
catch (Exception e) when (e.IsThrowable())

0 commit comments

Comments
 (0)