test(ui/embed_spec): use notification instead of request (#25555)

This avoid the hang mentioned in #24888, and also matches TUI better.
This commit is contained in:
zeertzjq
2023-10-09 16:14:37 +08:00
committed by GitHub
parent dadc06ced2
commit f96f8566b5
2 changed files with 9 additions and 3 deletions

View File

@@ -98,6 +98,7 @@ describe('--embed UI', function()
-- attach immediately after startup, for early UI
local screen = Screen.new(40, 8)
screen.rpc_async = true -- Avoid hanging. #24888
screen:attach {stdin_fd=3}
screen:set_default_attr_ids {
[1] = {bold = true, foreground = Screen.colors.Blue1};