Skip to content

Commit 2b3af31

Browse files
committed
different errors being raised
1 parent 056a481 commit 2b3af31

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

spec/integration/client_side_encryption/custom_endpoint_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@
9494
end
9595

9696
let(:error_regex) do
97-
if BSON::Environment.jruby?
98-
/SocketError/
99-
else
100-
/Connection refused/
101-
end
97+
/Connection refused|SocketError|SocketTimeoutError/
10298
end
10399

104100
it_behaves_like 'raising a KMS error'

spec/mongo/socket_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@
160160
end
161161

162162
it 'eventually writes everything' do
163-
puts "=== spec begins"
164163
expect(socket.write(data, timeout: timeout)).
165164
to be === data.length
166165
end

0 commit comments

Comments
 (0)