Remove unnecessary server preparation step and ensure ActiveRecord disconnection in teardown

This commit is contained in:
zinduolis
2025-09-06 10:43:05 +10:00
parent ac6dfe50a5
commit 5a333d45a9

View File

@@ -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