Skip to content

Commit

Permalink
Fix flaky project rename test (#7794)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
4e6 authored Sep 12, 2023
1 parent 6fd2295 commit a7fc333
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ class RenameProjectHandler(timeout: FiniteDuration, runtimeConnector: ActorRef)
_,
Api.ProjectRenamed(oldNormalizedName, newNormalizedName, newName)
) =>
replyTo ! ResponseResult(RenameProject, id, Unused)
context.system.eventStream.publish(
RefactoringProtocol.ProjectRenamedNotification(
oldNormalizedName,
newNormalizedName,
newName
)
)
replyTo ! ResponseResult(RenameProject, id, Unused)
cancellable.cancel()
context.stop(self)

Expand Down

0 comments on commit a7fc333

Please sign in to comment.