Skip to content

Commit

Permalink
Disable flaky test (#2756)
Browse files Browse the repository at this point in the history
See #2755 

Get a real fix next

Co-authored-by: Mike <jmstall@microsoft.com>
  • Loading branch information
MikeStall and Mike authored Nov 27, 2024
1 parent b36ecc1 commit 216c29c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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);
Expand All @@ -38,5 +40,6 @@ public async Task TestNl2FxIsCanceledCorrectly()
Assert.NotEmpty(TestServer.UnhandledExceptions);
Assert.Equal(1, nl2FxHandler.PreHandleNl2FxCallCount);
}
#endif
}
}

0 comments on commit 216c29c

Please sign in to comment.