From 216c29ce78520de35d0e33fa1cbf4b9b395d2c7b Mon Sep 17 00:00:00 2001 From: Mike Stall Date: Wed, 27 Nov 2024 11:48:50 -0800 Subject: [PATCH] Disable flaky test (#2756) See #2755 Get a real fix next Co-authored-by: Mike --- .../RedesignedLanguageServerTests/CancellationTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/LanguageServiceProtocol/RedesignedLanguageServerTests/CancellationTests.cs b/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/LanguageServiceProtocol/RedesignedLanguageServerTests/CancellationTests.cs index 74949b8e3b..e37fada8df 100644 --- a/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/LanguageServiceProtocol/RedesignedLanguageServerTests/CancellationTests.cs +++ b/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/LanguageServiceProtocol/RedesignedLanguageServerTests/CancellationTests.cs @@ -12,6 +12,8 @@ namespace Microsoft.PowerFx.Tests.LanguageServiceProtocol { public partial class LanguageServerTestBase { + // Fix this: https://github.com/microsoft/Power-Fx/issues/2755 +#if false [Fact] public async Task TestNl2FxIsCanceledCorrectly() { @@ -28,7 +30,7 @@ public async Task TestNl2FxIsCanceledCorrectly() nl2FxHandler.Nl2FxDelayTime = 800; var payload = NL2FxMessageJson(documentUri); using var source = new CancellationTokenSource(); - source.CancelAfter(500); + source.CancelAfter(500); <-- flaky // Act var rawResponse = await TestServer.OnDataReceivedAsync(payload.payload, source.Token); @@ -38,5 +40,6 @@ public async Task TestNl2FxIsCanceledCorrectly() Assert.NotEmpty(TestServer.UnhandledExceptions); Assert.Equal(1, nl2FxHandler.PreHandleNl2FxCallCount); } +#endif } }