mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-26 06:46:35 +00:00
Avoid intermittent test failures
by making sure that we're back on shell command-line
This commit is contained in:
parent
d261c36cde
commit
b504c6eb39
@ -156,6 +156,7 @@ class TestBase < Minitest::Test
|
|||||||
File.read(tempname)
|
File.read(tempname)
|
||||||
ensure
|
ensure
|
||||||
File.unlink tempname while File.exists?(tempname)
|
File.unlink tempname while File.exists?(tempname)
|
||||||
|
tmux.prepare
|
||||||
end
|
end
|
||||||
|
|
||||||
def fzf(*opts)
|
def fzf(*opts)
|
||||||
@ -672,7 +673,7 @@ module TestShell
|
|||||||
def test_alt_c
|
def test_alt_c
|
||||||
tmux.prepare
|
tmux.prepare
|
||||||
tmux.send_keys :Escape, :c, pane: 0
|
tmux.send_keys :Escape, :c, pane: 0
|
||||||
lines = tmux.until(1) { |lines| lines.item_count > 0 }
|
lines = tmux.until(1) { |lines| lines.item_count > 0 && lines[-3][2..-1] }
|
||||||
expected = lines[-3][2..-1]
|
expected = lines[-3][2..-1]
|
||||||
tmux.send_keys :Enter, pane: 1
|
tmux.send_keys :Enter, pane: 1
|
||||||
tmux.prepare
|
tmux.prepare
|
||||||
|
Loading…
Reference in New Issue
Block a user