diff options
Diffstat (limited to 'jstests/sharding/mongos_validate_backoff.js')
-rw-r--r-- | jstests/sharding/mongos_validate_backoff.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/mongos_validate_backoff.js b/jstests/sharding/mongos_validate_backoff.js index 877ab808dcc..6462dc48ff8 100644 --- a/jstests/sharding/mongos_validate_backoff.js +++ b/jstests/sharding/mongos_validate_backoff.js @@ -18,7 +18,8 @@ var timeBadInsert = function(){ var start = new Date().getTime() // Bad insert, no shard key - assert.writeError(coll.insert({ hello : "world" })); + coll.insert({ hello : "world" }) + assert.neq( null, coll.getDB().getLastError() ) var end = new Date().getTime() |