Skip to content

Commit c9b2288

Browse files
committed
Remove 7.2-7.3 Regression Test now that versions are no longer supported
1 parent 11d9a2f commit c9b2288

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs

-38
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
{

0 commit comments

Comments
 (0)