Skip to content

Commit

Permalink
SERVER-5389 don't "attempt" so often
Browse files Browse the repository at this point in the history
jstest.attempt() is used to pound on something until a condition is met.
Polling every half a second isn't gaining us much, but it is littering
build logs with a lot of extra output (the functions passed to this
function tend to print things).  With this submit I am reducing the clutter
by 4x.
  • Loading branch information
milkie committed Apr 12, 2012
1 parent 77c70ec commit 7c024a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/shell/utils.js
Expand Up @@ -1172,7 +1172,7 @@ jsTest.isMongos = function(conn) {
jsTest.attempt = function( opts, func ) {
var timeout = opts.timeout || 1000;
var tries = 0;
var sleepTime = 500;
var sleepTime = 2000;
var result = null;
var context = opts.context || this;

Expand Down

0 comments on commit 7c024a1

Please sign in to comment.