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

This commit is contained in:
Eric Freese 2017-02-17 15:33:09 -07:00
parent 06fca77ffb
commit c959408305

View file

@ -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