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 6390140 · Browse files · 1 file+6 added−6 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+6 added−6 removed

  • tests:+6 added−6 removed

1 file+6 added−6 removed

modified:test/test_go.rb+6 added-6 removed
254 unmodified lines
255 assert_equal '>', lines[-1]256257 # Testing basic key bindings258 tmux.send_keys '99', 'C-a', '1', 'C-f', '3', 'C-b', 'C-h', 'C-u', 'C-e', 'C-y', 'C-k', 'Tab', 'BTab'259 tmux.until { |lines| lines[-2] == ' 856/100000' }260 lines = tmux.capture261 assert_equal '> 3910', lines[-4]262 assert_equal ' 391', lines[-3]263 assert_equal ' 856/100000', lines[-2]264 assert_equal '> 391', lines[-1]259 tmux.until do |lines|260 '> 3910' == lines[-4] &&261 ' 391' == lines[-3] &&262 ' 856/100000' == lines[-2] &&263 '> 391' == lines[-1]264 end265266 tmux.send_keys :Enter267 assert_equal '3910', readonce.chomp268 end
1714 unmodified lines