Bug 913814: Fix test_304_responses.js to not be dependent on random GC forcement, r=michal

This commit is contained in:
Honza Bambas 2013-10-07 18:58:39 +02:00
parent 201997223e
commit 37f8167fb8
2 changed files with 2 additions and 1 deletions

View File

@ -2,9 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "CacheLog.h"
#include "CacheEntry.h"
#include "CacheStorageService.h"
#include "CacheLog.h"
#include "nsIInputStream.h"
#include "nsIOutputStream.h"

View File

@ -81,6 +81,7 @@ add_test(function test_304_stored_in_cache() {
cacheEntry.setMetaDataElement("response-head",
"HTTP/1.1 304 Not Modified\r\n" +
"\r\n");
cacheEntry.metaDataReady();
cacheEntry.close();
var chan = make_channel(baseURI + existingCached304);