Fixed incorrect variable referencing

This commit is contained in:
Jack Walker
2020-05-27 17:17:41 +10:00
parent 93df6694b8
commit e94ac0169f

View File

@@ -71,7 +71,7 @@ RSpec.configure do |config|
def server_teardown(webdriver, server_pid, server_pids)
begin
driver.quit
webdriver.quit
rescue => exception
print_info "Exception: #{exception}"
print_info "Exception Class: #{exception.class}"
@@ -79,8 +79,8 @@ RSpec.configure do |config|
exit 0
ensure
print_info "Shutting down server"
Process.kill("KILL", pid)
Process.kill("KILL", pids)
Process.kill("KILL", server_pid)
Process.kill("KILL", server_pids)
end
end
end