From 37f8167fb8e7441e5e5e5a1f9c89552ede5a6306 Mon Sep 17 00:00:00 2001 From: Honza Bambas Date: Mon, 7 Oct 2013 18:58:39 +0200 Subject: [PATCH] Bug 913814: Fix test_304_responses.js to not be dependent on random GC forcement, r=michal --- netwerk/cache2/CacheEntry.cpp | 2 +- netwerk/test/unit/test_304_responses.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/netwerk/cache2/CacheEntry.cpp b/netwerk/cache2/CacheEntry.cpp index 4c4bcbd2cf9e..5dfe7549e591 100644 --- a/netwerk/cache2/CacheEntry.cpp +++ b/netwerk/cache2/CacheEntry.cpp @@ -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" diff --git a/netwerk/test/unit/test_304_responses.js b/netwerk/test/unit/test_304_responses.js index ba0b9241889d..278656eac152 100644 --- a/netwerk/test/unit/test_304_responses.js +++ b/netwerk/test/unit/test_304_responses.js @@ -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);