Skip to content

Commit 680e19e

Browse files
Fix rescue clause in backpressure prose test
Mongo::Error::PoolTimeout does not exist; replace with StandardError which covers all connection-related errors (SocketError, pool checkout timeouts, NoServerAvailable, etc.).
1 parent 8bb216d commit 680e19e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

spec/integration/sdam_prose_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@
166166
client.use('test')['test'].find(
167167
'$where' => 'function() { sleep(2000); return true; }'
168168
).first
169-
rescue Mongo::Error::PoolTimeout,
170-
Mongo::Error::SocketError,
171-
Mongo::Error::NoServerAvailable
169+
rescue StandardError
172170
# Ignore connection errors (including checkout timeouts).
173171
end
174172
end

0 commit comments

Comments
 (0)