test/functional/client_test.rb in mongo-1.10.0.rc0 vs test/functional/client_test.rb in mongo-1.10.0.rc1

- old
+ new

@@ -332,16 +332,17 @@ def test_max_wire_version_and_min_wire_version_values conn = standard_connection(:connect => false) admin_db = Object.new - admin_db.expects(:command).returns({'ok' => 1, 'ismaster' => 1, 'maxWireVersion' => 1, 'minWireVersion' => 1}) + admin_db.expects(:command).returns({'ok' => 1, 'ismaster' => 1, 'maxWireVersion' => 1, 'minWireVersion' => 1, 'maxWriteBatchSize' => 999}) conn.expects(:[]).with('admin').returns(admin_db) conn.connect assert_equal 1, conn.max_wire_version assert_equal 1, conn.min_wire_version + assert_equal 999, conn.max_write_batch_size end def test_max_wire_version_and_min_wire_version_values_with_no_reported_values conn = standard_connection(:connect => false) @@ -350,9 +351,10 @@ conn.expects(:[]).with('admin').returns(admin_db) conn.connect assert_equal 0, conn.max_wire_version assert_equal 0, conn.min_wire_version + assert_equal Mongo::MongoClient::DEFAULT_MAX_WRITE_BATCH_SIZE, conn.max_write_batch_size end def test_wire_version_feature conn = standard_connection(:connect => false) conn.stubs(:min_wire_version).returns(0)