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/shard1.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/shard1.js')
-rw-r--r-- | jstests/sharding/shard1.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/sharding/shard1.js b/jstests/sharding/shard1.js index 468d611271b..ba42f53349a 100644 --- a/jstests/sharding/shard1.js +++ b/jstests/sharding/shard1.js @@ -43,7 +43,9 @@ assert.eq( 3 , db.foo.find().length() , "after sharding, no split count failed" var invalidDB = s.getDB( "foobar" ); // hack to bypass invalid database name checking at the DB constructor invalidDB._name = "foo bar"; -invalidDB.blah.insert( { x : 1 } ); +assert.throws(function() { + invalidDB.blah.insert({ x: 1 }); +}); assert.isnull( s.config.databases.findOne( { _id : "foo bar" } ) ); |