mongodb/mongo-ruby-driver — pull request #270 by estolfo (2013-09-25 20:21:00+00:00)
Title: RUBY-661 update server timeout tests to use new maxTimeAlwaysTimeOut modes

I wrote a method in test helper that takes a block, sets the new maxTimeAlwaysTimeOut option to alwaysOn, then yields to a block. It then sets maxTimeAlwaysTimeOut back to 'off'.

I updated the cursor test and collection test to use this helper. They relied on a javascript timeout before, which was unreliable because it needs to be fixed in the server.

This PR eliminates the need for the "pending" flag in tests.