mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-22 23:15:20 +00:00
Merge branch 'adam/async' into adam/async-interface
This commit is contained in:
@@ -92,7 +92,7 @@ public class TarReaderAsyncTests : ReaderTests
|
||||
}
|
||||
var destinationFileName = Path.Combine(destdir, file.NotNull());
|
||||
|
||||
using var fs = File.Create(destinationFileName);
|
||||
using var fs = File.OpenWrite(destinationFileName);
|
||||
await entryStream.CopyToAsync(fs);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public class TestBase : IAsyncDisposable
|
||||
Directory.CreateDirectory(SCRATCH2_FILES_PATH);
|
||||
}
|
||||
|
||||
//akways use async dispose since we have I/O and sync Dispose doesn't wait when using xunit
|
||||
//always use async dispose since we have I/O and sync Dispose doesn't wait when using xunit
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
await Task.CompletedTask;
|
||||
|
||||
@@ -119,7 +119,7 @@ public class ZipArchiveAsyncTests : ArchiveTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async ValueTask Zip_Random_Write_Remove_Sync()
|
||||
public async ValueTask Zip_Random_Write_Remove_Async()
|
||||
{
|
||||
var scratchPath = Path.Combine(SCRATCH_FILES_PATH, "Zip.deflate.mod.zip");
|
||||
var unmodified = Path.Combine(TEST_ARCHIVES_PATH, "Zip.deflate.noEmptyDirs.zip");
|
||||
@@ -141,7 +141,7 @@ public class ZipArchiveAsyncTests : ArchiveTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async ValueTask Zip_Random_Write_Add_Sync()
|
||||
public async ValueTask Zip_Random_Write_Add_Async()
|
||||
{
|
||||
var jpg = Path.Combine(ORIGINAL_FILES_PATH, "jpg", "test.jpg");
|
||||
var scratchPath = Path.Combine(SCRATCH_FILES_PATH, "Zip.deflate.mod.zip");
|
||||
|
||||
Reference in New Issue
Block a user