summaryrefslogtreecommitdiff
path: root/jstests/replsets/rslib.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-04-27 00:09:07 -0400
committerEliot Horowitz <eliot@10gen.com>2011-04-27 00:09:07 -0400
commit336a1db69131635d33f3b7cf8a7a31353d10407c (patch)
tree953f83856efc5518c682306101fe128a20d0a0d7 /jstests/replsets/rslib.js
parent2a4fc317fc1a274d0de84673eeda3b8f3b5a74b8 (diff)
downloadmongo-336a1db69131635d33f3b7cf8a7a31353d10407c.tar.gz
better debugging
Diffstat (limited to 'jstests/replsets/rslib.js')
-rw-r--r--jstests/replsets/rslib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/rslib.js b/jstests/replsets/rslib.js
index 6434cddcf96..19271c9e13d 100644
--- a/jstests/replsets/rslib.js
+++ b/jstests/replsets/rslib.js
@@ -2,7 +2,7 @@
var count = 0;
var w = 0;
-var wait = function(f) {
+var wait = function(f,msg) {
w++;
var n = 0;
while (!f()) {
@@ -11,7 +11,7 @@ var wait = function(f) {
if (++n == 4) {
print("" + f);
}
- assert(n < 200, 'tried 200 times, giving up');
+ assert(n < 200, 'tried 200 times, giving up on ' + msg );
sleep(1000);
}
};