Skip to content

Commit a89dda4

Browse files
committed
Skip flaky Linux tests which depend on help system
1 parent ccba0d3 commit a89dda4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs

+7-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
using Range = OmniSharp.Extensions.LanguageServer.Protocol.Models.Range;
2727
using Microsoft.PowerShell.EditorServices.Logging;
2828
using Microsoft.PowerShell.EditorServices.Services.Configuration;
29+
using Microsoft.PowerShell.EditorServices.Utility;
2930

3031
namespace PowerShellEditorServices.Test.E2E
3132
{
@@ -924,9 +925,10 @@ await PsesLanguageClient
924925
}
925926

926927
[Trait("Category", "LSP")]
927-
[Fact]
928+
[SkippableFact]
928929
public async Task CanSendCompletionAndCompletionResolveRequestAsync()
929930
{
931+
Skip.If(!VersionUtils.IsLinux, "These depend on the help system, which is flaky on Linux.");
930932
string filePath = NewTestFile("Write-H");
931933

932934
CompletionList completionItems = await PsesLanguageClient.TextDocument.RequestCompletion(
@@ -950,9 +952,10 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
950952
}
951953

952954
[Trait("Category", "LSP")]
953-
[Fact]
955+
[SkippableFact]
954956
public async Task CanSendCompletionResolveWithModulePrefixRequestAsync()
955957
{
958+
Skip.If(!VersionUtils.IsLinux, "These depend on the help system, which is flaky on Linux.");
956959
await PsesLanguageClient
957960
.SendRequest<EvaluateRequestArguments>(
958961
"evaluate",
@@ -985,9 +988,10 @@ await PsesLanguageClient
985988
}
986989

987990
[Trait("Category", "LSP")]
988-
[Fact]
991+
[SkippableFact]
989992
public async Task CanSendHoverRequestAsync()
990993
{
994+
Skip.If(!VersionUtils.IsLinux, "These depend on the help system, which is flaky on Linux.");
991995
string filePath = NewTestFile("Write-Host");
992996

993997
Hover hover = await PsesLanguageClient.TextDocument.RequestHover(

0 commit comments

Comments
 (0)