Sha256: feef452452b5ac4ac72fc85e146c134268446f507fb18e971276b2ba0411212a
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
require './test/test_helper' class TestTimeout < Test::Unit::TestCase def test_timeout @conn = standard_connection(:op_timeout => 2) assert @conn[MONGO_TEST_DB]['test'].save({:a => 1}) assert @conn[MONGO_TEST_DB]['test'].find.next assert_raise OperationTimeout do @conn[MONGO_TEST_DB]['test'].find({'$where' => 'function() { while(true) { this.a == 1 } }'}).next end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mongo-1.5.1 | test/timeout_test.rb |
mongo-1.5.0.rc0 | test/timeout_test.rb |
mongo-1.4.0 | test/timeout_test.rb |
mongo-1.3.0.rc0 | test/timeout_test.rb |