Add a cache buster for Chrome to attachment_ranges test
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/48223485 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/48223485 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/48223485 Branch: refs/heads/1.2.x Commit: 482234854c71512fe1c38a3917cb12a0539330a3 Parents: 1f07088 Author: Jan Lehnardt <[email protected]> Authored: Sat Jan 7 15:46:23 2012 +0100 Committer: Jan Lehnardt <[email protected]> Committed: Sat Jan 7 15:47:29 2012 +0100 ---------------------------------------------------------------------- share/www/script/test/attachment_ranges.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/48223485/share/www/script/test/attachment_ranges.js ---------------------------------------------------------------------- diff --git a/share/www/script/test/attachment_ranges.js b/share/www/script/test/attachment_ranges.js index bf1ed63..603848e 100644 --- a/share/www/script/test/attachment_ranges.js +++ b/share/www/script/test/attachment_ranges.js @@ -43,7 +43,8 @@ couchTests.attachment_ranges = function(debug) { TEquals("29", xhr.getResponseHeader("Content-Length")); // Fetch the whole entity without an end offset is a 200. - var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc/foo.txt?bar=1", { + var rand = "&foo=" + Math.random(10000000); + var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc/foo.txt?bar=1" + rand, { headers: { "Range": "bytes=0-" }
