Closed Bug 607133 Opened 14 years ago Closed 14 years ago

Remove the unneeded bits of toolkit/components/places/tests/unit/test_404630.js which hit the network, and thus make it flaky

Categories

(Toolkit :: Places, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: philor, Assigned: philor)

References

()

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

test_404630.js just failed multiple times across multiple trees, maybe from mozilla.org flakiness, or DNS flakiness in the build farm, or someone breaking mozilla.org/favicon.ico, or google.com was down, or who knows what.

In any case, it doesn't matter why: the test needs to be disabled until it is rewritten to not hit the network.
Forgot to mention that I looked sometime later after the first instance, and the only part that actually has to successfully hit the network is google.com/favicon.ico, because the mozilla.com ones are supposed to just throw before they actually do anything.
the last part of the test is useless, we have better tests for it.
I'll blindly review any patch removing the last call to setAndLoadFaviconForPage
Attached patch FixSplinter Review
Not too blind, please - I've never really paid much attention to how xpcshell tests work, though it did make it through one round on the tryserver.
Assignee: nobody → philringnalda
Status: NEW → ASSIGNED
Attachment #494307 - Flags: review?(mak77)
Comment on attachment 494307 [details] [diff] [review]
Fix

it looks fine!
Attachment #494307 - Flags: review?(mak77) → review+
http://hg.mozilla.org/mozilla-central/rev/1f2beffd84ff
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Summary: Rewrite toolkit/components/places/tests/unit/test_404630.js to not depend on the network → Remove the unneeded bits of toolkit/components/places/tests/unit/test_404630.js which hit the network, and thus make it flaky
Target Milestone: --- → mozilla2.0b8
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: