From f4db8015147d316e6f6eee9734fc8836aa196718 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 3 Oct 2023 20:25:53 +0200 Subject: [PATCH] Removed Assert that seems to be causing flaky test runs. --- .../Optimizers/ImageOptimizerTestHelper{TOptimizer}.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Magick.NET.Tests/Optimizers/ImageOptimizerTestHelper{TOptimizer}.cs b/tests/Magick.NET.Tests/Optimizers/ImageOptimizerTestHelper{TOptimizer}.cs index 2c67f01b29..ce2f0407d7 100644 --- a/tests/Magick.NET.Tests/Optimizers/ImageOptimizerTestHelper{TOptimizer}.cs +++ b/tests/Magick.NET.Tests/Optimizers/ImageOptimizerTestHelper{TOptimizer}.cs @@ -86,13 +86,12 @@ protected void AssertLosslessCompressTwice(string fileName) var after1 = tempFile.Length; - var compressed2 = Optimizer.LosslessCompress(tempFile.File); + Optimizer.LosslessCompress(tempFile.File); var after2 = tempFile.Length; Assert.InRange(after1, after2 - 1, after2 + 1); Assert.True(compressed1); - Assert.False(compressed2); } protected void AssertLosslessCompressInvalidFileFormat(string fileName)