Closed
Bug 595831
Opened 15 years ago
Closed 15 years ago
test_AddonRepository_cache.js is connecting https://versioncheck.addons.mozilla.org/
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla2.0b7
People
(Reporter: ginnchen+exoracle, Assigned: mossop)
Details
Attachments
(2 files)
|
1.33 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
|
1.16 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
I don't know if it is expected.
But I think test suite should not try to connect a production server.
Here's the log.
....
TEST-PASS | /export/home/ginn/work/mozilla-central/release/_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell-unpack/test_AddonRepository_cache.js | [anonymous : 335] false == false
TEST-PASS | /export/home/ginn/work/mozilla-central/release/_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell-unpack/test_AddonRepository_cache.js | [anonymous : 339] false == false
TEST-PASS | /export/home/ginn/work/mozilla-central/release/_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell-unpack/test_AddonRepository_cache.js | [check_database_exists : 312] true == true
*** LOG addons.updates: Requesting https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=2&id=test_AddonRepository_2@tests.mozilla.org&version=1.2&maxAppVersion=1&status=userDisabled&appID=xpcshell@tests.mozilla.org&appVersion=1&appOS=XPCShell&appABI=noarch-spidermonkey&locale=en-US¤tAppVersion=1&updateType=112
*** LOG addons.updates: Requesting https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=2&id=test_AddonRepository_3@tests.mozilla.org&version=1.3&maxAppVersion=1&status=userDisabled&appID=xpcshell@tests.mozilla.org&appVersion=1&appOS=XPCShell&appABI=noarch-spidermonkey&locale=en-US¤tAppVersion=1&updateType=112
*** LOG addons.updates: Requesting https://versioncheck.addons.mozilla.org/update/VersionCheck.php?reqVersion=2&id=test_AddonRepository_1@tests.mozilla.org&version=1.1&maxAppVersion=1&status=userEnabled&appID=xpcshell@tests.mozilla.org&appVersion=1&appOS=XPCShell&appABI=noarch-spidermonkey&locale=en-US¤tAppVersion=1&updateType=112
| Assignee | ||
Comment 1•15 years ago
|
||
It's not a big deal, I don't think any tests are relying on AMO, but we should make the automated test suite use a testing server for the add-on update checks.
I met this problem because our unittest buildbot machine has some problems with network connection.
Therefore, it always timeout at this test.
I've added "127.0.0.1 versioncheck.addos.mozilla.org" to /etc/hosts to get around.
| Assignee | ||
Comment 3•15 years ago
|
||
Makes the update and blocklist urls point to the testing server for safety.
Comment 4•15 years ago
|
||
Comment on attachment 475273 [details] [diff] [review]
patch rev 1
rs=me...
Attachment #475273 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b7
fix failed.
If you want to test it, you can add
127.0.0.2 versioncheck.addons.mozilla.org
to /etc/hosts
It will cause timeout for this case.
Is automation.py used by "make xpcshell-tests"?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 8•15 years ago
|
||
Damn, totally patched the wrong test suite. Well nm it's useful anyway. Here is a better one:
Attachment #477640 -
Flags: review?(robert.bugzilla)
Updated•15 years ago
|
Attachment #477640 -
Flags: review?(robert.bugzilla) → review+
| Assignee | ||
Comment 9•15 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•