Bug 1147392 - Workaround herness orange, recreate cache entry in test test_cache2-23-read-over-chunk.js every time. r=michal

This commit is contained in:
Honza Bambas 2015-03-25 11:23:00 -04:00
parent d726d9fba8
commit 7b4707b17a

View File

@ -19,7 +19,7 @@ function run_test()
payload += String.fromCharCode(i + 65);
}
asyncOpenCacheEntry("http://read/", "disk", Ci.nsICacheStorage.OPEN_NORMALLY, LoadContextInfo.default,
asyncOpenCacheEntry("http://read/", "disk", Ci.nsICacheStorage.OPEN_TRUNCATE, LoadContextInfo.default,
new OpenCallback(NEW|WAITFORWRITE, "", payload, function(entry) {
var is = entry.openInputStream(0);
pumpReadStream(is, function(read) {