Skip to content

Commit e117325

Browse files
committed
Sleep aggressively in irb tests so they pass
1 parent 83f006f commit e117325

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/helpers/expect_helpers.exp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ proc exit_irb {} {
5858

5959
proc irb_display_text {text} {
6060
send "puts '$text'\r"
61-
sleep 2.0
61+
sleep 5.0
6262
}
6363

6464
# Generates random output just to fill the screen.
6565
proc irb_generate_output {} {
6666
send "puts 'output\n' * 200\r"
67-
sleep 0.5
67+
sleep 5.0
6868
}
6969

7070
proc enter_test_git_repo {} {

test/test_digit_search.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ exit_irb
121121
enter_irb
122122
irb_generate_output
123123
send "puts 012"
124-
sleep 0.1
124+
sleep 5.0
125125
tmux_ctrl_d
126126
irb_assert_highlighted "012" "irb console, pane bottom, not beggining of line"
127127
exit_irb

test/test_file_search.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ exit_irb
136136
enter_irb
137137
irb_generate_output
138138
send "puts /absolute/file/irb.rb"
139-
sleep 0.1
139+
sleep 5
140140
tmux_ctrl_f
141141
irb_assert_highlighted " /absolute/file/irb.rb" "irb console absolute path, pane bottom, not beggining of line"
142142
exit_irb

test/test_url_search.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ exit_irb
180180
enter_irb
181181
irb_generate_output
182182
send "puts http://example16.com"
183-
sleep 0.1
183+
sleep 5
184184
tmux_ctrl_u
185185
irb_assert_highlighted "http://example16.com" "irb console, pane bottom, not beginning of line"
186186
exit_irb

test/test_user_defined_search.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ exit_irb
127127
enter_irb
128128
irb_generate_output
129129
send "puts random string33"
130-
sleep 0.1
130+
sleep 5
131131
tmux_ctrl_t
132132
irb_assert_highlighted "random string33" "irb console, pane bottom, not beginning of line"
133133
exit_irb

0 commit comments

Comments
 (0)