diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-05-11 03:04:11 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-05-11 03:04:52 -0400 |
commit | abe72624760ae0eac64558150bc60935c892af07 (patch) | |
tree | c9345bf962383525de2c6cd483681fc925e1e0a7 /jstests | |
parent | d892174f432df42af74129c467366300f89e1c24 (diff) | |
download | mongo-abe72624760ae0eac64558150bc60935c892af07.tar.gz |
better test debugging
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/sharding/shard_insert_getlasterror_w2.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/shard_insert_getlasterror_w2.js b/jstests/sharding/shard_insert_getlasterror_w2.js index 1e0266dcc7d..de3d63ec34d 100644 --- a/jstests/sharding/shard_insert_getlasterror_w2.js +++ b/jstests/sharding/shard_insert_getlasterror_w2.js @@ -51,7 +51,7 @@ function go() { db.foo.insert({_id:'a', x:1}); db.foo.insert({_id:'a', x:1}); var x = db.getLastErrorObj(2, 30000) - assert.neq(x.err, null, tojson(x)); + assert.neq(x.err, null, "C1 " + tojson(x)); // Add more data for (var i = N; i < 2*N; i++) { @@ -59,7 +59,7 @@ function go() { var x = db.getLastErrorObj(2, 30000) // wait to be copied to at least one secondary if (i % 30 == 0) print(i) if (i % 100 == 0 || x.err != null) printjson(x); - assert.eq(x.err, null, tojson(x)); + assert.eq(x.err, null, "C2 " + tojson(x)); } // take down the slave and make sure it fails over |