Skip to content
Myr

Increase timeout in test cases

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 06ab399 · Browse files · 1 file+2 added−2 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−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:test/test_go.rb+2 added-2 removed
136 unmodified lines
137 self.until { |lines| lines.empty? }138 end139private140 def defaults opts141 { timeout: 5, pane: 0 }.merge(opts)141 { timeout: 10, pane: 0 }.merge(opts)142 end143144 def wait opts = {}145 timeout, pane = defaults(opts).values_at(:timeout, :pane)
62 unmodified lines
208 end209210 def test_vanilla211 tmux.send_keys "seq 1 100000 | #{fzf}", :Enter212 tmux.until(timeout: 10) { |lines|212 tmux.until(timeout: 20) { |lines|213 lines.last =~ /^>/ && lines[-2] =~ /^ 100000/ }214 lines = tmux.capture215 assert_equal ' 2', lines[-4]216 assert_equal '> 1', lines[-3]
361 unmodified lines