mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1760110
- Restart http3Server to make more tests pass, r=mxinden
Differential Revision: https://phabricator.services.mozilla.com/D217797
This commit is contained in:
parent
da98b58ef1
commit
3f96fab91e
@ -18,6 +18,8 @@ async function create_h3_server() {
|
||||
}
|
||||
|
||||
async function http3_setup_tests(http3version, reload) {
|
||||
do_get_profile();
|
||||
|
||||
let h3Port;
|
||||
let isAndroid = mozinfo.os == "android";
|
||||
// On Android, we don't have a way to start the server on the host on demand.
|
||||
@ -31,7 +33,6 @@ async function http3_setup_tests(http3version, reload) {
|
||||
Assert.notEqual(h3Port, "");
|
||||
|
||||
let h3Route = "foo.example.com:" + h3Port;
|
||||
do_get_profile();
|
||||
|
||||
Services.prefs.setBoolPref("network.http.http3.enable", true);
|
||||
if (isAndroid) {
|
||||
|
@ -21,7 +21,7 @@ add_task(async function pre_setup() {
|
||||
});
|
||||
|
||||
add_task(async function setup() {
|
||||
await http3_setup_tests("h3");
|
||||
await http3_setup_tests("h3", true);
|
||||
});
|
||||
|
||||
WebSocketListener.prototype = {
|
||||
|
@ -8,15 +8,20 @@ registerCleanupFunction(async () => {
|
||||
http3_clear_prefs();
|
||||
});
|
||||
|
||||
// setup will be called before the child process tests
|
||||
add_task(async function setup() {
|
||||
await http3_setup_tests("h3-29");
|
||||
});
|
||||
|
||||
async function run_test() {
|
||||
function run_test() {
|
||||
// test priority urgency and incremental with priority disabled
|
||||
Services.prefs.setBoolPref("network.http.http3.priority", false);
|
||||
Services.prefs.setBoolPref("network.http.priority_header.enabled", false);
|
||||
run_test_in_child("../unit/test_http3_prio_disabled.js");
|
||||
run_next_test(); // only pumps next async task from this file
|
||||
|
||||
do_test_pending();
|
||||
http3_setup_tests("h3-29", true)
|
||||
.then(() => {
|
||||
run_test_in_child("../unit/test_http3_prio_disabled.js");
|
||||
run_next_test(); // only pumps next async task from this file
|
||||
do_test_finished();
|
||||
})
|
||||
.catch(e => {
|
||||
Assert.ok(false, "unexpected exception:" + e);
|
||||
do_test_finished();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user