Skip to content

Commit 23e8cc8

Browse files
committed
Rescue Errno::ESRCH in correct place
1 parent 87e8cdb commit 23e8cc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tools/mongo_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def start(verifies = DEFAULT_VERIFIES)
323323
super(verifies)
324324
begin
325325
verify(verifies)
326-
rescue Mongo::ConnectionFailure
326+
rescue Errno::ESRCH
327327
# Hack for 2.2 in case the server could not start because of an
328328
# invalid setParameter option.
329329
config.delete(:setParameter)
@@ -340,7 +340,7 @@ def verify(verifies = 600)
340340
Mongo::MongoClient.new(@host, @port).close
341341
#puts "DbServer.verified via connection - port: #{@port} iteration: #{i}"
342342
return @pid
343-
rescue Mongo::ConnectionFailure, SystemCallError, IOError
343+
rescue Mongo::ConnectionFailure
344344
sleep 1
345345
end
346346
end

0 commit comments

Comments
 (0)