Skip to content

Commit a1340d6

Browse files
committed
Include GetBound in DisposedCompressorThrows test
1 parent 4e1490c commit a1340d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/LibDeflate.Tests/CompressorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void Compress()
5959
ReadOnlySpan<byte> inSpan = input.Span;
6060
using var outputOwner = compressor.Compress(inSpan);
6161

62-
Span<byte> output = new byte[input.Length];
62+
Span<byte> output = new byte[compressor.GetBound(input.Length)];
6363
compressor.Compress(inSpan, output);
6464
}
6565
}

0 commit comments

Comments
 (0)