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, 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()