Switch ShoppingProduct tests to use processAsync methods on the http server
Categories
(Firefox Graveyard :: Shopping, task, P3)
Tracking
(Not tracked)
People
(Reporter: fchasen, Unassigned)
References
Details
(Whiteboard: [fidefe-shopping])
Currently we use a simple sync readFile method to get the responses, but can pass an async function to registerPathHandler instead and use a regular fetch call.
Gijs mention that if we switch we can also properly test the abort controller:
With the processAsync methods on the http server you can effectively block the response until you flip a switch on the outside of the http handler. You could use that to ensure that if there's no response before we call the abort controller, the request is actually aborted (whereas this checks the signal but doesn't check that the fetch request actually gets aborted).
| Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Reporter | ||
Updated•2 years ago
|
Comment 1•1 year ago
|
||
This bug is being closed because we are closing the Bugzilla component.
If this still needs attention, please re-open and change component to
the appropriate component or "General".
Updated•1 year ago
|
Description
•