diff options
author | James McCoy <jamessan@jamessan.com> | 2022-07-16 21:24:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 21:24:06 -0400 |
commit | 08a50f6690f4dd0260c3e57b6223d0a9fae9dfd8 (patch) | |
tree | b9728e18c853b8be167a3daa54068eeee8c1b46e | |
parent | 4f59bc8013a631f3bed70fb8a313e985818073f0 (diff) | |
parent | bcb5b7b3f62dcb7777e8b47d8d1f7f99789afaac (diff) | |
download | rneovim-08a50f6690f4dd0260c3e57b6223d0a9fae9dfd8.tar.gz rneovim-08a50f6690f4dd0260c3e57b6223d0a9fae9dfd8.tar.bz2 rneovim-08a50f6690f4dd0260c3e57b6223d0a9fae9dfd8.zip |
Merge pull request #19395 from jamessan/flaky-job-test
test(job_spec): accept alternate messages for "append environment" tests
-rw-r--r-- | test/functional/core/job_spec.lua | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index a6763ba3c7..04fbb807be 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -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() |