summaryrefslogtreecommitdiff
path: root/share/www/script/test
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-07-14 17:51:09 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-07-14 17:51:09 +0000
commit7b3cb1f05e603789544e668155a497676502cb17 (patch)
tree835ac57645048bccaa1df9729ae64c2d08550c6c /share/www/script/test
parent4a3760c2b1bb5f0829d3a643f563adc587c01f39 (diff)
Merge revision 964108 from trunk:
Bug fix: badmatch error after deleting a user doc (uncovered by revision 963723). git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@964109 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-rw-r--r--share/www/script/test/auth_cache.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/www/script/test/auth_cache.js b/share/www/script/test/auth_cache.js
index 4d380e41..8c3fa943 100644
--- a/share/www/script/test/auth_cache.js
+++ b/share/www/script/test/auth_cache.js
@@ -225,7 +225,19 @@ couchTests.auth_cache = function(debug) {
T(misses_after === misses_before);
T(hits_after === (hits_before + 2));
+ T(authDb.deleteDoc(fdmanana).ok);
T(CouchDB.logout().ok);
+
+ hits_before = hits_after;
+ misses_before = misses_after;
+
+ T(CouchDB.login("fdmanana", "javascript").error === "unauthorized");
+
+ hits_after = hits();
+ misses_after = misses();
+
+ T(misses_after === (misses_before + 1));
+ T(hits_after === hits_before);
}