diff --git a/tests/Magick.NET.Tests/Coders/ThePangoCoder.cs b/tests/Magick.NET.Tests/Coders/ThePangoCoder.cs index 171dcda96c..662d336ff4 100644 --- a/tests/Magick.NET.Tests/Coders/ThePangoCoder.cs +++ b/tests/Magick.NET.Tests/Coders/ThePangoCoder.cs @@ -26,6 +26,9 @@ public void ShouldUseInterlineSpacingSetting() [Fact] public void ShouldUseTextAntiAliasSetting() { + if (TestRuntime.HasFlakyMacOSArm64Result) + return; + var settings = new MagickReadSettings() { AntiAlias = false, diff --git a/tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs b/tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs index 0027e327b0..57b50e541d 100644 --- a/tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs +++ b/tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs @@ -12,4 +12,7 @@ public static bool HasFlakyLinuxArm64Result public static bool HasFlakyMacOSResult => Runtime.IsMacOS; + + public static bool HasFlakyMacOSArm64Result + => Runtime.IsMacOS && Runtime.IsArm64; }