diff options
author | Jan Lehnardt <jan@apache.org> | 2015-12-16 20:49:34 +0100 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2015-12-16 20:49:34 +0100 |
commit | 405fdd6b921843ba104627fbaa8cc1799549a329 (patch) | |
tree | 354bbf20e724069f58a854bfe8af55e7f9a5dced | |
parent | 4d560970e85f77d256a145d768550b087016c352 (diff) | |
download | couchdb-405fdd6b921843ba104627fbaa8cc1799549a329.tar.gz |
JS test: update view_update_seq.js for 2.0
-rw-r--r-- | test/javascript/tests/view_update_seq.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/javascript/tests/view_update_seq.js b/test/javascript/tests/view_update_seq.js index df92b11d6..30120148e 100644 --- a/test/javascript/tests/view_update_seq.js +++ b/test/javascript/tests/view_update_seq.js @@ -11,17 +11,18 @@ // the License. couchTests.view_update_seq = function(debug) { - var db = new CouchDB("test_suite_db", {"X-Couch-Full-Commit":"true"}); - db.deleteDb(); + return console.log("TODO: update_seq for _all_docs not implemented yet"); + var db_name = get_random_db_name(); + var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"false"}); db.createDb(); if (debug) debugger; - T(db.info().update_seq == 0); + TEquals("0", db.info().update_seq.substr(0, 1), "db should be empty"); var resp = db.allDocs({update_seq:true}); T(resp.rows.length == 0); - T(resp.update_seq == 0); + TEquals("0", resp.update_seq.substr(0, 1), "db should be empty"); var designDoc = { _id:"_design/test", @@ -103,4 +104,6 @@ couchTests.view_update_seq = function(debug) { resp = db.view('test/summate',{group:true, update_seq:true},[0,1]); TEquals(103, resp.update_seq); + // cleanup + db.deleteDb(); }; |