mongo 1.3.0.rc0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +0,0 @@
1
- require './test/test_helper'
2
-
3
- class TestTimeout < Test::Unit::TestCase
4
-
5
- def test_timeout
6
- @conn = standard_connection(:op_timeout => 2)
7
- assert @conn[MONGO_TEST_DB]['test'].save({:a => 1})
8
- assert @conn[MONGO_TEST_DB]['test'].find.next
9
- assert_raise OperationTimeout do
10
- @conn[MONGO_TEST_DB]['test'].find({'$where' => 'function() { while(true) { this.a == 1 } }'}).next
11
- end
12
- end
13
-
14
- end