Remove unnecessary server preparation step and ensure ActiveRecord disconnection in teardown

This commit is contained in:
zinduolis
2025-09-06 10:56:17 +10:00
parent f3834f730b
commit 41b595ae00

View File

@@ -63,7 +63,6 @@ RSpec.describe 'AutoRunEngine Test', 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
@@ -103,6 +102,7 @@ RSpec.describe 'AutoRunEngine Test', run_on_browserstack: true do
after(:all) do
server_teardown(@driver, @pid, @pids)
disconnect_all_active_record!
end
it 'AutoRunEngine is working' do