mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #19395 from jamessan/flaky-job-test
test(job_spec): accept alternate messages for "append environment" tests
This commit is contained in:
@@ -73,9 +73,16 @@ describe('jobs', function()
|
||||
nvim('command', [[call jobstart('echo $TOTO $VAR', g:job_opts)]])
|
||||
end
|
||||
|
||||
expect_msg_seq({
|
||||
{'notification', 'stdout', {0, {'hello world abc', ''}}},
|
||||
})
|
||||
expect_msg_seq(
|
||||
{
|
||||
{'notification', 'stdout', {0, {'hello world abc'}}},
|
||||
{'notification', 'stdout', {0, {'', ''}}},
|
||||
},
|
||||
{
|
||||
{'notification', 'stdout', {0, {'hello world abc', ''}}},
|
||||
{'notification', 'stdout', {0, {''}}}
|
||||
}
|
||||
)
|
||||
end)
|
||||
|
||||
it('append environment with pty #env', function()
|
||||
@@ -89,9 +96,16 @@ describe('jobs', function()
|
||||
else
|
||||
nvim('command', [[call jobstart('echo $TOTO $VAR', g:job_opts)]])
|
||||
end
|
||||
expect_msg_seq({
|
||||
{'notification', 'stdout', {0, {'hello world abc', ''}}},
|
||||
})
|
||||
expect_msg_seq(
|
||||
{
|
||||
{'notification', 'stdout', {0, {'hello world abc'}}},
|
||||
{'notification', 'stdout', {0, {'', ''}}},
|
||||
},
|
||||
{
|
||||
{'notification', 'stdout', {0, {'hello world abc', ''}}},
|
||||
{'notification', 'stdout', {0, {''}}}
|
||||
}
|
||||
)
|
||||
end)
|
||||
|
||||
it('replace environment #env', function()
|
||||
|
||||
Reference in New Issue
Block a user