diff options
author | Randolph Tan <randolph@10gen.com> | 2014-03-04 17:41:56 -0500 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-04-21 16:53:25 -0400 |
commit | 7acafe85d9bdd63122c19ba1cca86a7f55174941 (patch) | |
tree | 234effd8e5a5b6c63d8b12c74de2d9acb78a7509 /jstests/sharding/user_flags_sharded.js | |
parent | e87b42c4f13e48078f5c4aefba3caf18dcfba072 (diff) | |
download | mongo-7acafe85d9bdd63122c19ba1cca86a7f55174941.tar.gz |
SERVER-13425 migrate sharding jstest suite to use write commands api
Diffstat (limited to 'jstests/sharding/user_flags_sharded.js')
-rw-r--r-- | jstests/sharding/user_flags_sharded.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/sharding/user_flags_sharded.js b/jstests/sharding/user_flags_sharded.js index 6378b53e85d..292cfe9f3f9 100644 --- a/jstests/sharding/user_flags_sharded.js +++ b/jstests/sharding/user_flags_sharded.js @@ -26,8 +26,9 @@ assert.eq( res.ok , 1 , "collMod failed" ); // and insert some stuff, for the hell of it var numdocs = 20; -for( i=0; i < numdocs; i++){ db1.getCollection( coll ).insert( {_id : i} ); } -db1.getLastError() +for( i=0; i < numdocs; i++){ + assert.writeOK(db1.getCollection( coll ).insert({ _id : i })); +} // Next verify that userFlags has changed to 0 collstats = db1.getCollection( coll ).stats() |