aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/job_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-18 07:09:32 +0800
committerGitHub <noreply@github.com>2023-12-18 07:09:32 +0800
commit75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0 (patch)
treee42e772cff002934070ee702998a747dab84e327 /test/functional/core/job_spec.lua
parentd82a586a9e39f1d346c1aea78167a85c586ed3f4 (diff)
downloadrneovim-75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0.tar.gz
rneovim-75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0.tar.bz2
rneovim-75b8f4c8cbe595ff868c1a0c59edbdf9658e46b0.zip
test(core/job_spec): fix flakiness (#26623)
Diffstat (limited to 'test/functional/core/job_spec.lua')
-rw-r--r--test/functional/core/job_spec.lua15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua
index bffeafc865..b59a4ca746 100644
--- a/test/functional/core/job_spec.lua
+++ b/test/functional/core/job_spec.lua
@@ -1154,17 +1154,26 @@ describe('jobs', function()
]])
local screen = thelpers.setup_child_nvim({
+ '--cmd', 'set notermguicolors',
'-i', 'NONE',
'-u', filename,
- '+q'
})
+ -- Wait for startup to complete, so that all terminal responses are received.
+ screen:expect([[
+ {1: } |
+ ~ |*3
+ {1:[No Name] 0,0-1 All}|
+ |
+ {3:-- TERMINAL --} |
+ ]])
- screen:expect{grid=[[
+ feed(':q<CR>')
+ screen:expect([[
|
[Process exited 0]{1: } |
|*4
{3:-- TERMINAL --} |
- ]]}
+ ]])
end)
end)