Refactoring: Improving logging of remote browser instance creation errors by logging earlier and adding exception to log.
This commit is contained in:
parent
955608a427
commit
5eed9c7506
1 changed files with 2 additions and 2 deletions
|
@ -75,10 +75,10 @@ class TestCase < Test::Unit::TestCase
|
||||||
begin
|
begin
|
||||||
local_browser = browser_instance_remote
|
local_browser = browser_instance_remote
|
||||||
break
|
break
|
||||||
rescue
|
rescue => e
|
||||||
wait_until_ready = rand(5..13)
|
wait_until_ready = rand(5..13)
|
||||||
|
log('browser_instance', { rescure: true, count: count, sleep: wait_until_ready, exception: e })
|
||||||
sleep wait_until_ready
|
sleep wait_until_ready
|
||||||
log('browser_instance', { rescure: true, count: count, sleep: wait_until_ready })
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue