summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard_insert_getlasterror_w2.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-01-18 08:37:27 -0500
committerEliot Horowitz <eliot@10gen.com>2011-01-18 08:37:27 -0500
commitbffff7d07dd5d5dfa83017ad6ab3127a3a2d4b05 (patch)
tree00e0cb3dbac66ea8f8db2b43496b9ceed889fe81 /jstests/sharding/shard_insert_getlasterror_w2.js
parentc400248eb917b99a1513f1ea44f9195ca5ad341c (diff)
downloadmongo-bffff7d07dd5d5dfa83017ad6ab3127a3a2d4b05.tar.gz
fix test
Diffstat (limited to 'jstests/sharding/shard_insert_getlasterror_w2.js')
-rw-r--r--jstests/sharding/shard_insert_getlasterror_w2.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/jstests/sharding/shard_insert_getlasterror_w2.js b/jstests/sharding/shard_insert_getlasterror_w2.js
index 5992cbf56d4..17ad5d0f9c6 100644
--- a/jstests/sharding/shard_insert_getlasterror_w2.js
+++ b/jstests/sharding/shard_insert_getlasterror_w2.js
@@ -52,15 +52,8 @@ function go() {
db['foo'].insert({x: i, text: Text})
var x = db.getLastErrorObj(2, 30000) // wait to be copied to at least one secondary
if (i % 30 == 0) print(i)
- // if config is included, discard its error
- if (x.shards && x.shards.length == 2) {
- assert.eq(x.errs.length, 1);
- assert.eq(x.err, "norepl");
- }
- else {
- if (i % 30 == 0 || x.err != null) printjson(x);
- assert.eq(x.err, null, tojson(x));
- }
+ if (i % 30 == 0 || x.err != null) printjson(x);
+ assert.eq(x.err, null, tojson(x));
}
// BUG: above getLastError fails on about every 170 inserts