mongo 1.3.0.rc0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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