summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-12-25 02:28:21 -0500
committerEliot Horowitz <eliot@10gen.com>2010-12-25 02:28:21 -0500
commit2f0f69fb6568f0a923740bb469b2e158a3f6e8e6 (patch)
treea4febb4b541e5c247ab745ccef639c3d23b3728f
parent87912f1b190736d215b203e11eed80c8383c97be (diff)
downloadmongo-2f0f69fb6568f0a923740bb469b2e158a3f6e8e6.tar.gz
test timeouts
-rw-r--r--jstests/replsets/rollback.js1
-rw-r--r--jstests/replsets/rollback2.js1
-rwxr-xr-xjstests/replsets/two_initsync.js1
3 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/rollback.js b/jstests/replsets/rollback.js
index 8840371844c..f317ecc8080 100644
--- a/jstests/replsets/rollback.js
+++ b/jstests/replsets/rollback.js
@@ -32,6 +32,7 @@ function wait(f) {
if (++n == 4) {
print("" + f);
}
+ assert(n < 200, 'tried 200 times, giving up');
sleep(1000);
}
}
diff --git a/jstests/replsets/rollback2.js b/jstests/replsets/rollback2.js
index f50ea456183..5d4540d8e0e 100644
--- a/jstests/replsets/rollback2.js
+++ b/jstests/replsets/rollback2.js
@@ -32,6 +32,7 @@ function wait(f) {
if (++n == 4) {
print("" + f);
}
+ assert(n < 200, 'tried 200 times, giving up');
sleep(1000);
}
}
diff --git a/jstests/replsets/two_initsync.js b/jstests/replsets/two_initsync.js
index 6ae8475aaee..7d1442d344f 100755
--- a/jstests/replsets/two_initsync.js
+++ b/jstests/replsets/two_initsync.js
@@ -32,6 +32,7 @@ function wait(f) {
if (++n == 4) {
print("" + f);
}
+ assert(n < 200, 'tried 200 times, giving up');
sleep(1000);
}
}