From a7fc333ff0217614a8c30768db47b11dd55c1683 Mon Sep 17 00:00:00 2001 From: Dmitry Bushev Date: Tue, 12 Sep 2023 13:24:12 +0100 Subject: [PATCH] Fix flaky project rename test (#7794) Fixes the _RefactoringTests - rename project_ part of the #7775 Changelog: - update: send the ok response before the notification to fix the order of events in tests --- .../requesthandler/refactoring/RenameProjectHandler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/language-server/src/main/scala/org/enso/languageserver/requesthandler/refactoring/RenameProjectHandler.scala b/engine/language-server/src/main/scala/org/enso/languageserver/requesthandler/refactoring/RenameProjectHandler.scala index bdfa06d1a79e..8424cdc188c8 100644 --- a/engine/language-server/src/main/scala/org/enso/languageserver/requesthandler/refactoring/RenameProjectHandler.scala +++ b/engine/language-server/src/main/scala/org/enso/languageserver/requesthandler/refactoring/RenameProjectHandler.scala @@ -60,6 +60,7 @@ class RenameProjectHandler(timeout: FiniteDuration, runtimeConnector: ActorRef) _, Api.ProjectRenamed(oldNormalizedName, newNormalizedName, newName) ) => + replyTo ! ResponseResult(RenameProject, id, Unused) context.system.eventStream.publish( RefactoringProtocol.ProjectRenamedNotification( oldNormalizedName, @@ -67,7 +68,6 @@ class RenameProjectHandler(timeout: FiniteDuration, runtimeConnector: ActorRef) newName ) ) - replyTo ! ResponseResult(RenameProject, id, Unused) cancellable.cancel() context.stop(self)