From 6a07a51f5558dfa350a4df244c9418caadaaf5ff Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Mon, 5 Dec 2022 00:56:43 +0100 Subject: [PATCH] one more fix --- tests/ImageSharp.Tests/Image/ImageTests.Decode_Cancellation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Image/ImageTests.Decode_Cancellation.cs b/tests/ImageSharp.Tests/Image/ImageTests.Decode_Cancellation.cs index 88afa0747..7c647b4a5 100644 --- a/tests/ImageSharp.Tests/Image/ImageTests.Decode_Cancellation.cs +++ b/tests/ImageSharp.Tests/Image/ImageTests.Decode_Cancellation.cs @@ -42,7 +42,7 @@ public partial class ImageTests // Do not test "direct" decoder cancellation for Identify for percentages other than 0% to avoid fine-tuning the percentages. // Cancellation should happen before we read enough data to consider the stream "identified". This can be very early for some formats/files. - if (!identify && p > 0) + if (!identify || p > 0) { data.Add(true, file, p); }