diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-17 10:57:19 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-19 14:13:21 +0300 |
commit | 0e9286a19ed51ba9a2d6bfd06432c90e36cad4bd (patch) | |
tree | 60ebcc8135631a28cec7ecc40b1094e0a2770e97 /test/functional | |
parent | 0320a58082f922b54cb36ce57064c07a9e781aa8 (diff) | |
download | rneovim-0e9286a19ed51ba9a2d6bfd06432c90e36cad4bd.tar.gz rneovim-0e9286a19ed51ba9a2d6bfd06432c90e36cad4bd.tar.bz2 rneovim-0e9286a19ed51ba9a2d6bfd06432c90e36cad4bd.zip |
tests: Fix CI failures
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/core/main_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua index 50c6009b53..a374b4c040 100644 --- a/test/functional/core/main_spec.lua +++ b/test/functional/core/main_spec.lua @@ -9,7 +9,7 @@ local nvim_prog = helpers.nvim_prog local write_file = helpers.write_file local popen_w = global_helpers.popen_w -local popen_r = global_helpers.popen_r +local repeated_popen_r = global_helpers.repeated_popen_r describe('Command-line option', function() describe('-s', function() @@ -48,13 +48,13 @@ describe('Command-line option', function() eq(nil, lfs.attributes(fname)) eq(true, not not dollar_fname:find('%$%w+')) write_file(dollar_fname, ':call setline(1, "100500")\n:wqall!\n') - local pipe = popen_r( + local pipe = repeated_popen_r( nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname, fname) - local stdout = pipe:read('*a') - eq('', stdout) - local attrs = lfs.attributes(fname) - eq(#('100500\n'), attrs.size) + local stdout = pipe:read('*a') + eq('', stdout) + local attrs = lfs.attributes(fname) + eq(#('100500\n'), attrs.size) end) end) end) |