use new stop_beef_server function

This commit is contained in:
Stephen
2024-03-28 08:21:06 +10:00
parent 9427107044
commit cdba6b632f

View File

@@ -14,10 +14,7 @@ RSpec.describe BeefTest do
end
after(:each) do
# Shutting down server
Process.kill("KILL", @pid) unless @pid.nil?
Process.wait(@pid) unless @pid.nil? # Ensure the process has exited and the port is released
@pid = nil
stop_beef_server(@pid)
end
describe '.login' do