Fix the DB/Session test
parent
abe46024de
commit
5f5684841b
|
@ -70,6 +70,7 @@ RSpec.shared_examples_for 'Msf::DBManager::Session' do
|
|||
session.exploit = module_instance
|
||||
session.exploit_datastore = exploit_datastore
|
||||
session.info = 'Info'
|
||||
session.arch = 'Arch'
|
||||
session.platform = 'Platform'
|
||||
session.session_host = host.address
|
||||
session.sid = rand(100)
|
||||
|
@ -426,7 +427,7 @@ RSpec.shared_examples_for 'Msf::DBManager::Session' do
|
|||
it { expect(subject.last_seen).to be_within(1.second).of(Time.now.utc) }
|
||||
it { expect(subject.local_id).to eq(session.sid) }
|
||||
it { expect(subject.opened_at).to be_within(1.second).of(Time.now.utc) }
|
||||
it { expect(subject.platform).to eq(session.platform) }
|
||||
it { expect(subject.platform).to eq(session.session_type) }
|
||||
it { expect(subject.routes).to eq([]) }
|
||||
it { expect(subject.stype).to eq(session.type) }
|
||||
it { expect(subject.via_payload).to eq(session.via_payload) }
|
||||
|
|
Loading…
Reference in New Issue