Skip to content

Commit a6c4485

Browse files
committed
Fix the PostreSQL SSL tests for #starttls method
1 parent 43c1be3 commit a6c4485

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/lib/rex/proto/postgresql/client_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
allow(socket).to receive(:read).with(1).and_return('S')
4242

4343
expect(socket).to receive(:write).with('ssl_request_data')
44-
expect(socket).to receive(:extend).with(Rex::Socket::SslTcp)
45-
expect(socket).to receive(:initsock_with_ssl_version)
44+
expect(socket).to receive(:starttls).with(Rex::Socket::Parameters)
4645

4746
client = described_class.new(db_name, 'username', 'password', "tcp://#{host}:#{port}", nil, true, ssl_opts)
4847
expect(client).to be_a(Msf::Db::PostgresPR::Connection)

0 commit comments

Comments
 (0)