couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1095386 - /couchdb/trunk/share/www/script/test/replicator_db.js
Date Wed, 20 Apr 2011 12:15:34 GMT
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);



Mime
View raw message