Fix assertions in test_dynamic_completion_loader

This commit is contained in:
Junegunn Choi 2017-12-03 23:54:58 +09:00
parent 9c47739c0e
commit b877c385f0
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -1767,9 +1767,7 @@ class TestBash < TestBase
tmux.paste '_completion_loader() { complete -o default fake; }' tmux.paste '_completion_loader() { complete -o default fake; }'
tmux.paste 'complete -F _fzf_path_completion -o default -o bashdefault fake' tmux.paste 'complete -F _fzf_path_completion -o default -o bashdefault fake'
tmux.send_keys 'fake /tmp/foo**', :Tab tmux.send_keys 'fake /tmp/foo**', :Tab
tmux.until do |lines| tmux.until { |lines| lines.item_count.positive? }
lines.item_count.positive? && lines.item_count == lines.match_count
end
tmux.send_keys 'C-c' tmux.send_keys 'C-c'
tmux.prepare tmux.prepare
@ -1778,9 +1776,7 @@ class TestBash < TestBase
tmux.prepare tmux.prepare
tmux.send_keys 'fake /tmp/foo**', :Tab tmux.send_keys 'fake /tmp/foo**', :Tab
tmux.until do |lines| tmux.until { |lines| lines.item_count.positive? }
lines.item_count.positive? && lines.item_count == lines.match_count
end
end end
end end