diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-05-11 01:16:26 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-05-11 01:18:26 +0900 |
commit | d082cccb6d86081afddad6afbafa505f10936480 (patch) | |
tree | f172e7e93bb34a679e9b34cac0af825bfdec3288 /test | |
parent | 88a80e3c2ca8f3112a13023b4bb35101ed85a8d5 (diff) |
Fix flaky test case: test_ctrl_t_unicode
The width of the pseudo-terminal on Travis CI environment can be small
and cause the line to be wrapped.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_go.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index cf1fd77c..c09c86fd 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1229,7 +1229,7 @@ module TestShell tmux.send_keys :BTab, :BTab, pane: 1 tmux.until(1) { |lines| lines[-2].include? '(2)' } tmux.send_keys :Enter, pane: 1 - tmux.until { |lines| lines[-1].include? 'cat' } + tmux.until { |lines| lines[-1].include?('cat') || lines[-2].include?('cat') } tmux.send_keys :Enter tmux.until { |lines| lines[-1].include? 'test1test2' } end |