From f67168f479d2a594fdfcd32edda319a9e3649853 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 4 Feb 2026 08:40:43 +0000 Subject: [PATCH] try to fix test --- tests/SharpCompress.Test/Streams/LzwStreamAsyncTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/SharpCompress.Test/Streams/LzwStreamAsyncTests.cs b/tests/SharpCompress.Test/Streams/LzwStreamAsyncTests.cs index d6e0cac0..25edafb0 100644 --- a/tests/SharpCompress.Test/Streams/LzwStreamAsyncTests.cs +++ b/tests/SharpCompress.Test/Streams/LzwStreamAsyncTests.cs @@ -96,10 +96,11 @@ public class LzwStreamAsyncTests : TestBase var cts = new CancellationTokenSource(); var buffer = new byte[4096]; - var readTask = lzwStream.ReadAsync(buffer, 0, buffer.Length, cts.Token); cts.Cancel(); - await Assert.ThrowsAsync(async () => await readTask); + await Assert.ThrowsAsync(async () => + await lzwStream.ReadAsync(buffer, 0, buffer.Length, cts.Token) + ); } [Fact]