Skip to content

Commit 8740c0c

Browse files
committed
Skip both tests on macos arm64.
1 parent e8850a7 commit 8740c0c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

tests/Magick.NET.Tests/Coders/TheSvgCoder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public void ShouldUseWidthAndHeightFromReadSettings()
8888
[Fact]
8989
public void ShouldReadFontsWithQuotes()
9090
{
91+
Assert.SkipWhen(TestRuntime.HasFlakyMacOSArm64Result, "Flaky result on MacOS arm64.");
92+
9193
var svg = @"<?xml version=""1.0"" encoding=""utf-8""?>
9294
<svg version=""1.1"" xmlns=""http://www.w3.org/2000/svg"" xmlns:xlink=""http://www.w3.org/1999/xlink"" viewBox=""0 0 220 80"">
9395
<style type=""text/css"">

tests/Magick.NET.Tests/Settings/MagickSettingsTests/TheFontProperty.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public void ShouldDefaultToNull()
2121
[Fact]
2222
public void ShouldSetTheFontWhenReadingImage()
2323
{
24+
Assert.SkipWhen(TestRuntime.HasFlakyMacOSArm64Result, "Flaky result on MacOS arm64.");
25+
2426
using var image = new MagickImage();
2527

2628
Assert.Null(image.Settings.Font);

tests/Magick.NET.Tests/TestHelpers/TestRuntime.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ static TestRuntime()
1414
var isMacOS = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
1515

1616
HasFlakyLinuxArm64Result = isLinux && Runtime.Architecture == Architecture.Arm64;
17-
HasFlakyMacOSResult = isMacOS;
1817
HasFlakyMacOSArm64Result = isMacOS && Runtime.Architecture == Architecture.Arm64;
1918
}
2019

2120
public static bool HasFlakyLinuxArm64Result { get; }
2221

23-
public static bool HasFlakyMacOSResult { get; }
24-
2522
public static bool HasFlakyMacOSArm64Result { get; }
2623
}

0 commit comments

Comments
 (0)