Skip to content

Commit ed93ac9

Browse files
committed
Skip test that's too slow in ADO
And remove test that's no longer run since <7.4 has been dropped.
1 parent 601666f commit ed93ac9

File tree

1 file changed

+4
-39
lines changed

1 file changed

+4
-39
lines changed

test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs

+4-39
Original file line numberDiff line numberDiff line change
@@ -1057,44 +1057,6 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
10571057
Assert.Contains("Writes customized output to a host", updatedCompletionItem.Documentation.String);
10581058
}
10591059

1060-
// Regression test for https://github.com/PowerShell/PowerShellEditorServices/issues/1926
1061-
[SkippableFact]
1062-
public async Task CanRequestCompletionsAndHandleExceptions()
1063-
{
1064-
PowerShellVersion details
1065-
= await PsesLanguageClient
1066-
.SendRequest("powerShell/getVersion", new GetVersionParams())
1067-
.Returning<PowerShellVersion>(CancellationToken.None);
1068-
1069-
Skip.IfNot(details.Version.StartsWith("7.2") || details.Version.StartsWith("7.3"),
1070-
"This is a bug in PowerShell 7.2 and 7.3, fixed in 7.4");
1071-
1072-
string filePath = NewTestFile(@"
1073-
@() | ForEach-Object {
1074-
if ($false) {
1075-
return
1076-
}
1077-
1078-
@{key=$}
1079-
}");
1080-
1081-
Messages.Clear(); // On some systems there's a warning message about configuration items too.
1082-
CompletionList completionItems = await PsesLanguageClient.TextDocument.RequestCompletion(
1083-
new CompletionParams
1084-
{
1085-
TextDocument = new TextDocumentIdentifier
1086-
{
1087-
Uri = DocumentUri.FromFileSystemPath(filePath)
1088-
},
1089-
Position = new Position(line: 6, character: 11)
1090-
});
1091-
1092-
Assert.Empty(completionItems);
1093-
Assert.Collection(Messages,
1094-
(message) => Assert.Contains("Error Occurred in TabExpansion2", message.Message),
1095-
(message) => Assert.Contains("Exception occurred while running handling completion request", message.Message));
1096-
}
1097-
10981060
[SkippableFact(Skip = "Completion for Expand-SlowArchive is flaky.")]
10991061
public async Task CanSendCompletionResolveWithModulePrefixRequestAsync()
11001062
{
@@ -1269,9 +1231,12 @@ await PsesLanguageClient
12691231
Assert.Equal(0, evaluateResponseBody.VariablesReference);
12701232
}
12711233

1272-
[Fact]
1234+
[SkippableFact]
12731235
public async Task CanSendGetCommandRequestAsync()
12741236
{
1237+
Skip.If(Environment.GetEnvironmentVariable("TF_BUILD") is not null,
1238+
"This test is too slow in CI.");
1239+
12751240
List<object> pSCommandMessages =
12761241
await PsesLanguageClient
12771242
.SendRequest("powerShell/getCommand", new GetCommandParams())

0 commit comments

Comments
 (0)