From 5eed9c750602ce3988a85d4878527098965d14ba Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 14 Dec 2018 18:54:54 +0100 Subject: [PATCH] Refactoring: Improving logging of remote browser instance creation errors by logging earlier and adding exception to log. --- test/browser_test_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/browser_test_helper.rb b/test/browser_test_helper.rb index 5a697c1d4..e07029732 100644 --- a/test/browser_test_helper.rb +++ b/test/browser_test_helper.rb @@ -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