Skip to content

Commit

Permalink
Avoid test_rendering failure by adding sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Oct 29, 2023
1 parent a8e5cc7 commit 6ba488e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/irb/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_right
LINES
start_terminal(4, 19, %W{ruby -I/home/aycabta/ruby/reline/lib -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
write("Str\C-i")
# Wait for rdoc display. TODO: fix yamatanooroti
sleep 1
close

# This is because on macOS we display different shortcut for displaying the full doc
Expand Down Expand Up @@ -250,6 +252,8 @@ def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_left
LINES
start_terminal(4, 12, %W{ruby -I#{@pwd}/lib #{@pwd}/exe/irb}, startup_message: 'start IRB')
write("Str\C-i")
# Wait for rdoc display. TODO: fix yamatanooroti
sleep 1
close
assert_screen(<<~EOC)
start IRB
Expand Down

0 comments on commit 6ba488e

Please sign in to comment.