diff --git a/Snappier.Tests/SnappyStreamTests.cs b/Snappier.Tests/SnappyStreamTests.cs index d3b857a..7c009cc 100644 --- a/Snappier.Tests/SnappyStreamTests.cs +++ b/Snappier.Tests/SnappyStreamTests.cs @@ -80,6 +80,9 @@ public async Task CompressAndDecompressAsync(string filename) using var output = new MemoryStream(); +#if NET6_0_OR_GREATER + await +#endif using (var compressor = new SnappyStream(output, CompressionMode.Compress, true)) { await resource.CopyToAsync(compressor); @@ -87,6 +90,9 @@ public async Task CompressAndDecompressAsync(string filename) output.Position = 0; +#if NET6_0_OR_GREATER + await +#endif using var decompressor = new SnappyStream(output, CompressionMode.Decompress, true); using var streamReader = new StreamReader(decompressor, Encoding.UTF8);