diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-04-04 10:40:12 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-04-04 10:40:12 +0000 |
commit | bf87797c3eb759fdbfde221b1f1a9ebeea77779d (patch) | |
tree | 483164a818f5c17f9af91376737d149e56e26181 | |
parent | dbba2855ee6ccba18bda61e8cd9be6294d7093ba (diff) |
Fix unit tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@644674 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | share/www/script/couch_tests.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 208f8d86..986a90b2 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -404,11 +404,11 @@ var tests = { } 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 @@ var tests = { 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); |