mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
11 lines
260 B
JavaScript
11 lines
260 B
JavaScript
|
|
s = new ShardingTest( "passthrough1" , 2 )
|
|
|
|
db = s.getDB( "test" );
|
|
db.foo.insert( { num : 1 , name : "eliot" } );
|
|
db.foo.insert( { num : 2 , name : "sara" } );
|
|
db.foo.insert( { num : -1 , name : "joe" } );
|
|
assert.eq( 3 , db.foo.find().length() );
|
|
|
|
s.stop();
|