Closed
Bug 887706
Opened 11 years ago
Closed 11 years ago
use a dynamic port in httpserver xpcshell tests so they can be run in parallel
Categories
(Testing :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla25
People
(Reporter: mihneadb, Assigned: mihneadb)
References
Details
Attachments
(1 file, 1 obsolete file)
70.14 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•11 years ago
|
||
Still need to figure out a way to do it for:
netwerk/test/httpserver/test/test_request_line_split_in_two_packets.js
netwerk/test/httpserver/test/test_sjs.js
Suggestions welcome!
Assignee: nobody → mihneadb
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #768217 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 770609 [details] [diff] [review]
fixed all the test, one is run sequentially
This is a pretty long patch but basically I used -1 as the "start" port and wrapped all that was needed in lazy getters.
Please note that this patch requires the run-sequentially functionality that is introduced by the patch in bug 887054 (on which this bug depends).
Attachment #770609 -
Flags: review?(jwalden+bmo)
Comment 4•11 years ago
|
||
Comment on attachment 770609 [details] [diff] [review]
fixed all the test, one is run sequentially
Review of attachment 770609 [details] [diff] [review]:
-----------------------------------------------------------------
Going full-out lazy for all of this is more than I'd have done if I were writing this. Bunches of things here don't need to be lazy, exactly -- they just need to be delayed a little bit. But these are all tests, so as long as readability is moderately preserved, and it is far enough here, it's not really worth putting extra effort into doing things exactly "right".
Attachment #770609 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 6•11 years ago
|
||
Flags: in-testsuite-
Keywords: checkin-needed
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Updated•7 years ago
|
Component: httpd.js → General
You need to log in
before you can comment on or make changes to this bug.
Description
•