Only wait a max of 2 seconds for content to match after clearing screen
This commit is contained in:
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…
Reference in New Issue