Remove unnecessary server preparation step and ensure ActiveRecord disconnection in teardown
This commit is contained in:
@@ -58,7 +58,6 @@ RSpec.describe 'Browser Details Handler', run_on_browserstack: true do
|
||||
# Spawn HTTP Server
|
||||
print_info 'Starting HTTP Hook Server'
|
||||
http_hook_server = BeEF::Core::Server.instance
|
||||
http_hook_server.prepare
|
||||
|
||||
# Generate a token for the server to respond with
|
||||
@token = BeEF::Core::Crypto.api_token
|
||||
@@ -99,6 +98,7 @@ RSpec.describe 'Browser Details Handler', run_on_browserstack: true do
|
||||
|
||||
after(:all) do
|
||||
server_teardown(@driver, @pid, @pids)
|
||||
disconnect_all_active_record!
|
||||
end
|
||||
|
||||
it 'can successfully hook a browser' do
|
||||
|
||||
Reference in New Issue
Block a user