You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/04/20 14:15:34 UTC

svn commit: r1095386 - /couchdb/trunk/share/www/script/test/replicator_db.js

Author: fdmanana
Date: Wed Apr 20 12:15:34 2011
New Revision: 1095386

URL: http://svn.apache.org/viewvc?rev=1095386&view=rev
Log:
Avoid replicator_db.js test failures due to timing issues

These happen sometimes on slower machines.

Modified:
    couchdb/trunk/share/www/script/test/replicator_db.js

Modified: couchdb/trunk/share/www/script/test/replicator_db.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/replicator_db.js?rev=1095386&r1=1095385&r2=1095386&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/replicator_db.js (original)
+++ couchdb/trunk/share/www/script/test/replicator_db.js Wed Apr 20 12:15:34 2011
@@ -801,7 +801,8 @@ couchTests.replicator_db = function(debu
 
     TEquals(true, dbA.save(new_doc).ok);
     TEquals(true, dbB.save(new_doc).ok);
-    wait(1000);
+    waitForSeq(dbA, dbA_copy);
+    waitForSeq(dbB, dbB_copy);
 
     TEquals(true, repDb2.save(repDoc3).ok);
     waitForSeq(dbC, dbC_copy);