aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-07-06 01:20:43 +0300
committerZyX <kp-pav@yandex.ru>2015-10-08 22:00:06 +0300
commit749cae866278469d11e6ec467dd0e98ab6233439 (patch)
tree3a5bb52f00e0ada2322ac12e815bfd0f2044e097
parent602efe856a20df22a69c2bfc5de211064248034c (diff)
downloadrneovim-749cae866278469d11e6ec467dd0e98ab6233439.tar.gz
rneovim-749cae866278469d11e6ec467dd0e98ab6233439.tar.bz2
rneovim-749cae866278469d11e6ec467dd0e98ab6233439.zip
functests: Fix change list ShaDa test failures
-rw-r--r--test/functional/shada/marks_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/shada/marks_spec.lua b/test/functional/shada/marks_spec.lua
index a6518ccbf9..25362b406b 100644
--- a/test/functional/shada/marks_spec.lua
+++ b/test/functional/shada/marks_spec.lua
@@ -171,9 +171,15 @@ describe('ShaDa support code', function()
reset()
nvim_command('edit ' .. testfilename)
-- nvim_command('rviminfo')
+ -- nvim_command('redir! >/tmp/changes | changes | redir END')
nvim_feed('Gg;')
+ -- Note: without “sync” “commands” test has good changes to fail for unknown
+ -- reason (in first eq expected 1 is compared with 2). Any command inserted
+ -- causes this to work properly.
+ nvim_command('" sync')
eq(1, nvim_current_line())
nvim_feed('g;')
+ nvim_command('" sync 2')
eq(2, nvim_current_line())
end)
end)