From ebdf5775745a28e40248bddf6677911200322442 Mon Sep 17 00:00:00 2001 From: Justin Grote Date: Thu, 5 Dec 2024 23:31:28 -0800 Subject: [PATCH] Add timeout to slow GetommandRequestAsync --- .../LanguageServerProtocolMessageTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs b/test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs index 5114445e0..e155675c9 100644 --- a/test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs +++ b/test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs @@ -1060,13 +1060,13 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync() [SkippableFact] public async Task CanSendCompletionResolveWithModulePrefixRequestAsync() { - Skip.If(PsesStdioLanguageServerProcessHost.IsWindowsPowerShell, "It doesn't return the documentation tooltip correctly in CI but I can't reproduce it interactively."); + Skip.If(PsesStdioLanguageServerProcessHost.IsWindowsPowerShell, "It doesn't return the documentation tooltip correctly in CI but I can't reproduce it interactively in 5.1."); await PsesLanguageClient .SendRequest( "evaluate", new EvaluateRequestArguments { - Expression = "Import-Module Microsoft.PowerShell.Utility -Prefix Test" + Expression = "Import-Module Microsoft.PowerShell.Utility -Prefix Test -Force" }) .ReturningVoid(CancellationToken.None); @@ -1229,7 +1229,7 @@ await PsesLanguageClient Assert.Equal(0, evaluateResponseBody.VariablesReference); } - [Fact] + [Fact(Timeout = 60000)] public async Task CanSendGetCommandRequestAsync() { List pSCommandMessages =