diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-01-18 08:37:27 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-01-18 08:37:27 -0500 |
commit | bffff7d07dd5d5dfa83017ad6ab3127a3a2d4b05 (patch) | |
tree | 00e0cb3dbac66ea8f8db2b43496b9ceed889fe81 /jstests/sharding/shard_insert_getlasterror_w2.js | |
parent | c400248eb917b99a1513f1ea44f9195ca5ad341c (diff) | |
download | mongo-bffff7d07dd5d5dfa83017ad6ab3127a3a2d4b05.tar.gz |
fix test
Diffstat (limited to 'jstests/sharding/shard_insert_getlasterror_w2.js')
-rw-r--r-- | jstests/sharding/shard_insert_getlasterror_w2.js | 11 |
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 |