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.
- data/Rakefile +25 -20
- data/docs/HISTORY.md +9 -9
- data/lib/mongo.rb +1 -1
- data/lib/mongo/test.rb +20 -0
- data/test/async/collection_test.rb +224 -0
- data/test/async/connection_test.rb +24 -0
- data/test/async/cursor_test.rb +162 -0
- data/test/async/worker_pool_test.rb +99 -0
- data/test/bson/byte_buffer_test.rb +7 -0
- data/test/load/resque/load.rb +21 -0
- data/test/load/resque/processor.rb +26 -0
- data/test/load/unicorn/unicorn.rb +29 -0
- data/test/tools/load.rb +58 -0
- data/test/tools/sharding_manager.rb +202 -0
- data/test/tools/test.rb +4 -0
- metadata +142 -113
- data/docs/1.0_UPGRADE.md +0 -21
- data/lib/mongo/util/timeout.rb +0 -42
- data/test/bson/bson_string_test.rb +0 -30
- data/test/pool_test.rb +0 -21
- data/test/timeout_test.rb +0 -14
data/test/timeout_test.rb
DELETED
@@ -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
|