diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-18 17:49:47 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-19 14:13:21 +0300 |
commit | 1ea7541f657e64c843b97b25ec75dd388ee916cc (patch) | |
tree | 292fe92e26f7cd95a885e738c7b26239e0b5c57c /test/functional/core/main_spec.lua | |
parent | 3cd7bf31e2351eb2874f8431d290a3d36b0b075e (diff) | |
download | rneovim-1ea7541f657e64c843b97b25ec75dd388ee916cc.tar.gz rneovim-1ea7541f657e64c843b97b25ec75dd388ee916cc.tar.bz2 rneovim-1ea7541f657e64c843b97b25ec75dd388ee916cc.zip |
functests: Alter the order of checks
Check whether `repeated_read_cmd` returned nil and did not actually run nvim or
it did, but still returned nil for whatever reason.
Diffstat (limited to 'test/functional/core/main_spec.lua')
-rw-r--r-- | test/functional/core/main_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/core/main_spec.lua b/test/functional/core/main_spec.lua index cc781a59a1..59969538fa 100644 --- a/test/functional/core/main_spec.lua +++ b/test/functional/core/main_spec.lua @@ -51,9 +51,9 @@ describe('Command-line option', function() local stdout = repeated_read_cmd( nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname, fname) - eq('', stdout) local attrs = lfs.attributes(fname) eq(#('100500\n'), attrs.size) + eq('', stdout) end) end) end) |