Stub monitor_sock so we don't leak threads

bug/bundler_fix
James Lee 2015-03-30 22:03:39 -05:00
parent 95d70e7211
commit dfaf1b3a8f
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ require 'rex/post/meterpreter/extensions/stdapi/net/interface'
require 'rex/post/meterpreter/extensions/stdapi/net/route'
describe Msf::Sessions::Meterpreter do
before do
allow_any_instance_of(Rex::Post::Meterpreter::PacketDispatcher).to receive(:monitor_socket)
end
subject(:meterpreter) { described_class.new(StringIO.new(""), skip_ssl: true) }
let(:v6_gateway) { "2607:f8b0:4004:0802::1014" }