Skip to content

Commit

Permalink
skip flaky test on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
brettfo committed Apr 29, 2023
1 parent 3342cf6 commit 245779c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/IxMilia.Lisp.DebugAdapter.Test/DebugAdapterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public DebugAdapterTests(ITestOutputHelper output)
this.output = output;
}

[Fact]
[OsFact(skipLinux: true)] // flaky on linux
public async Task FullTest()
{
var filePath = "script-file.lisp";
Expand Down
16 changes: 16 additions & 0 deletions src/IxMilia.Lisp.DebugAdapter.Test/OsFactAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Runtime.InteropServices;
using Xunit;

namespace IxMilia.Lisp.DebugAdapter.Test
{
public class OsFactAttribute : FactAttribute
{
public OsFactAttribute(bool skipLinux)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && skipLinux)
{
Skip = "Test is skipped on Linux";
}
}
}
}

0 comments on commit 245779c

Please sign in to comment.