Add await

This commit is contained in:
Adam Hathcock
2026-01-22 15:42:54 +00:00
parent 77c1cebefc
commit 9403c12793

View File

@@ -291,7 +291,7 @@ public class ZipReaderAsyncTests : ReaderTests
// when FlushAsync() fails on non-seekable streams (Deflate compression)
var path = Path.Combine(TEST_ARCHIVES_PATH, "Zip.deflate.dd.zip");
using Stream stream = new ForwardOnlyStream(File.OpenRead(path));
await using var reader = ReaderFactory.OpenAsyncReader(new AsyncOnlyStream(stream));
await using var reader = await ReaderFactory.OpenAsyncReader(new AsyncOnlyStream(stream));
// This should not throw, even if internal FlushAsync() fails
while (await reader.MoveToNextEntryAsync())
@@ -318,7 +318,7 @@ public class ZipReaderAsyncTests : ReaderTests
// when FlushAsync() fails on non-seekable streams (LZMA compression)
var path = Path.Combine(TEST_ARCHIVES_PATH, "Zip.lzma.dd.zip");
using Stream stream = new ForwardOnlyStream(File.OpenRead(path));
await using var reader = ReaderFactory.OpenAsyncReader(new AsyncOnlyStream(stream));
await using var reader = await ReaderFactory.OpenAsyncReader(new AsyncOnlyStream(stream));
// This should not throw, even if internal FlushAsync() fails
while (await reader.MoveToNextEntryAsync())