diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-08-08 02:23:53 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-08-08 02:23:53 +0000 |
commit | 6153cdaacbbd87f521d692ffa7325ceda31934dc (patch) | |
tree | ad7b1dbcfbb8aba75ce8a371d72d59cf97a7977c /share/www/script/test | |
parent | 1423d6f0a593e16817068d2b5dc5463a21bc0ea4 (diff) |
provide the update_seq in all_docs view even when it is zero
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@983336 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-rw-r--r-- | share/www/script/test/view_update_seq.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/www/script/test/view_update_seq.js b/share/www/script/test/view_update_seq.js index d46cb3c6..9b07a777 100644 --- a/share/www/script/test/view_update_seq.js +++ b/share/www/script/test/view_update_seq.js @@ -18,6 +18,11 @@ couchTests.view_update_seq = function(debug) { T(db.info().update_seq == 0); + resp = db.allDocs({update_seq:true}); + + T(resp.rows.length == 0); + T(resp.update_seq == 0); + var designDoc = { _id:"_design/test", language: "javascript", @@ -35,7 +40,7 @@ couchTests.view_update_seq = function(debug) { T(db.info().update_seq == 1); - var resp = db.allDocs({update_seq:true}); + resp = db.allDocs({update_seq:true}); T(resp.rows.length == 1); T(resp.update_seq == 1); |