Merge pull request #19395 from jamessan/flaky-job-test

test(job_spec): accept alternate messages for "append environment" tests
This commit is contained in:
James McCoy
2022-07-16 21:24:06 -04:00
committed by GitHub

View File

@@ -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()