Skip to content
Myr

Avoid intermittent test failures

Before adoption: this commit came in with the history the project adopted, so no landing records it.

by making sure that we're back on shell command-line

authored by Junegunn Choi · committed by Junegunn Choi · parent d261c36 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • tests:+2 added−1 removed

1 file+2 added−1 removed

modified:test/test_go.rb+2 added-1 removed
154 unmodified lines
155 wait { File.exists?(tempname) }156 File.read(tempname)157 ensure158 File.unlink tempname while File.exists?(tempname)159 tmux.prepare160 end161162 def fzf(*opts)163 fzf!(*opts) + " > #{tempname}.tmp; mv #{tempname}.tmp #{tempname}"
508 unmodified lines
672673 def test_alt_c674 tmux.prepare675 tmux.send_keys :Escape, :c, pane: 0675 lines = tmux.until(1) { |lines| lines.item_count > 0 }676 lines = tmux.until(1) { |lines| lines.item_count > 0 && lines[-3][2..-1] }677 expected = lines[-3][2..-1]678 tmux.send_keys :Enter, pane: 1679 tmux.prepare680 tmux.send_keys :pwd, :Enter
170 unmodified lines