Refactoring: Improving logging of remote browser instance creation errors by logging earlier and adding exception to log.

This commit is contained in:
Thorsten Eckel 2018-12-14 18:54:54 +01:00
parent 955608a427
commit 5eed9c7506

View file

@ -75,10 +75,10 @@ class TestCase < Test::Unit::TestCase
begin
local_browser = browser_instance_remote
break
rescue
rescue => e
wait_until_ready = rand(5..13)
log('browser_instance', { rescure: true, count: count, sleep: wait_until_ready, exception: e })
sleep wait_until_ready
log('browser_instance', { rescure: true, count: count, sleep: wait_until_ready })
end
end