From e94ac0169f8d014c496d5f2713e25b0f91114f28 Mon Sep 17 00:00:00 2001 From: Jack Walker Date: Wed, 27 May 2020 17:17:41 +1000 Subject: [PATCH] Fixed incorrect variable referencing --- spec/spec_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b3f578b74..988ccd3dd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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