Skip to content
Myr

Fix flaky test case

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

authored by Junegunn Choi · committed by Junegunn Choi · parent d9ce797 · 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
412 unmodified lines
413 end414415 def test_expect416 test = lambda do |key, feed, expected = key|417 tmux.send_keys "seq 1 100 | #{fzf :expect, key}", :Enter417 tmux.send_keys "seq 1 100 | #{fzf :expect, key}; sync", :Enter418 tmux.until { |lines| lines[-2].include? '100/100' }419 tmux.send_keys '55'420 tmux.until { |lines| lines[-2].include? '1/100' }421 tmux.send_keys *feed422 tmux.prepare423 assert_equal [expected, '55'], readonce.split($/)424 end425 test.call 'ctrl-t', 'C-T'426 test.call 'ctrl-t', 'Enter', ''
1042 unmodified lines