couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r644674 - /incubator/couchdb/trunk/share/www/script/couch_tests.js
Date Fri, 04 Apr 2008 10:40:15 GMT
Author: cmlenz
Date: Fri Apr  4 03:40:12 2008
New Revision: 644674

URL: http://svn.apache.org/viewvc?rev=644674&view=rev
Log:
Fix unit tests.

Modified:
    incubator/couchdb/trunk/share/www/script/couch_tests.js

Modified: incubator/couchdb/trunk/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/couch_tests.js?rev=644674&r1=644673&r2=644674&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] Fri Apr  4 03:40:12 2008
@@ -404,11 +404,11 @@
     }
     T(db.save(designDoc).ok);
 
-    T(db.bulkSave(makeDocs(1, numDocs)).ok);
+    T(db.bulkSave(makeDocs(0, numDocs)).ok);
 
     for (var loop = 0; loop < 2; loop++) {
-      var rows = db.view("test/all_docs").rows
-      for (var i=0; i < numDocs; i++) {
+      var rows = db.view("test/all_docs").rows;
+      for (var i = 0; i < numDocs; i++) {
         T(rows[i].key == i);
       }
       T(db.view("test/no_docs").total_rows == 0)
@@ -692,7 +692,7 @@
       dbB.deleteDb();
       dbB.createDb();
 
-      var docs = makeDocs(1, numDocs);
+      var docs = makeDocs(0, numDocs);
       T(dbA.bulkSave(docs).ok);
 
       T(CouchDB.replicate(A, B).ok);



Mime
View raw message