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