Closed
Bug 792804
Opened 12 years ago
Closed 12 years ago
Test failure: mailnews/news/test/unit/test_bug540288.js | [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsICacheSession.openCacheEntry]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"
Categories
(MailNews Core :: Networking: NNTP, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 18.0
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(3 files)
2.94 KB,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
1.95 KB,
patch
|
Details | Diff | Splinter Review | |
2.88 KB,
patch
|
Details | Diff | Splinter Review |
Since bug 695399 landed on mozilla-central, comm-central xpcshell tests are busted:
TEST-UNEXPECTED-FAIL | /home/cltbld/talos-slave/test/build/xpcshell/tests/mailnews/news/test/unit/test_bug540288.js | test failed (with xpcshell return code: 0), see following log:
TEST-UNEXPECTED-FAIL | /home/cltbld/talos-slave/test/build/xpcshell/tests/mailnews/news/test/unit/test_bug540288.js | [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsICacheSession.openCacheEntry]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: /home/cltbld/talos-slave/test/build/xpcshell/tests/mailnews/news/test/unit/test_bug540288.js :: run_test :: line 76" data: no]
The attached patch fixes this test by using asyncOpenCacheEntry instead of openCacheEntry.
Assignee | ||
Comment 1•12 years ago
|
||
Same patch without the whitespace changes (diff -w) for easier reviewing.
Assignee | ||
Updated•12 years ago
|
Attachment #662977 -
Flags: review?(mconley)
Comment 2•12 years ago
|
||
Comment on attachment 662977 [details] [diff] [review]
Fix
Review of attachment 662977 [details] [diff] [review]:
-----------------------------------------------------------------
Just two things. Other than that, this looks good to me.
::: mailnews/news/test/unit/test_bug540288.js
@@ +68,5 @@
> server.start(NNTP_PORT);
>
> try {
> // Add an empty message to the cache
> + Cc["@mozilla.org/messenger/nntpservice;1"]
I guess there's no access to MailServices from here? I generally prefer to use that, with MailServices.nntp, as opposed to querying XPCOM for the service.
@@ +71,5 @@
> // Add an empty message to the cache
> + Cc["@mozilla.org/messenger/nntpservice;1"]
> + .getService(Ci.nsINntpService).cacheSession
> + .asyncOpenCacheEntry(kCacheKey, Ci.nsICache.ACCESS_WRITE, {
> + onCacheEntryAvailable: function(cacheEntry, access, status) {
I think this block needs to be indented 2 spaces more, to differentiate it from the code above.
Attachment #662977 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Assignee | ||
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 18.0
You need to log in
before you can comment on or make changes to this bug.
Description
•