Only wait a max of 2 seconds for content to match after clearing screen

pull/180/head
Eric Freese 8 years ago
parent 06fca77ffb
commit c959408305

@ -43,7 +43,12 @@ class TerminalSession
def clear_screen
send_keys('C-l')
sleep(0.1) until content == ''
i = 0
until content == opts[:prompt] || i > 20 do
sleep(0.1)
i = i + 1
end
self
end

Loading…
Cancel
Save