From a21622f7462e92f5019dcfd4878b0502b9b01e71 Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Mon, 18 Sep 2023 17:47:04 +1000 Subject: [PATCH] Increase default LSP notification test timeouts --- YarnSpinner.LanguageServer.Tests/LanguageServerTestsBase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YarnSpinner.LanguageServer.Tests/LanguageServerTestsBase.cs b/YarnSpinner.LanguageServer.Tests/LanguageServerTestsBase.cs index c8ef243eb..48fedd023 100644 --- a/YarnSpinner.LanguageServer.Tests/LanguageServerTestsBase.cs +++ b/YarnSpinner.LanguageServer.Tests/LanguageServerTestsBase.cs @@ -152,7 +152,7 @@ protected async Task GetTaskResultOrTimeoutAsync(TaskCompletionSource t CancellationToken ) ); - task.Task.Should().BeSameAs(winner, "because the result should arrive within {0} seconds", timeout); + winner.Should().BeSameAs(task.Task, "because the result should arrive within {0} seconds", timeout); return await task.Task; } @@ -172,7 +172,7 @@ protected async Task GetTaskResultOrTimeoutAsync(TaskCompletionSource t /// The amount of time to wait for /// diagnostics. /// A collection of objects. - protected async Task GetDiagnosticsAsync(Func? test = null, double timeout = 2f) + protected async Task GetDiagnosticsAsync(Func? test = null, double timeout = 5f) { return await GetTaskResultOrTimeoutAsync( ReceivedDiagnosticsNotifications.AddListener(test) , @@ -181,7 +181,7 @@ protected async Task GetDiagnosticsAsync(Func GetNodesChangedNotificationAsync(Func? test = null, double timeout = 2f) { + protected async Task GetNodesChangedNotificationAsync(Func? test = null, double timeout = 5f) { return await GetTaskResultOrTimeoutAsync( NodesChangedNotification.AddListener(test), null,