зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1703634 - Disable test_trr_cancel.js::cancel_immediately for socket process r=necko-reviewers,kershaw
The test is racy in that it expects the request to be immediately cancelled, but with the socket process that takes an IPC round-trip. Differential Revision: https://phabricator.services.mozilla.com/D136610
This commit is contained in:
Родитель
dabf47a8db
Коммит
51db0fdc6c
|
@ -45,7 +45,11 @@ add_task(async function sanity_check() {
|
|||
await new TRRDNSListener("example.com", { expectedAnswer: "1.2.3.4" });
|
||||
});
|
||||
|
||||
add_task(async function cancel_immediately() {
|
||||
// Cancelling the request is not sync when using the socket process, so
|
||||
// we skip this test when it's enabled.
|
||||
add_task(
|
||||
{ skip_if: () => mozinfo.socketprocess_networking },
|
||||
async function cancel_immediately() {
|
||||
await trrServer.registerDoHAnswers("example.org", "A", {
|
||||
answers: [
|
||||
{
|
||||
|
@ -77,7 +81,8 @@ add_task(async function cancel_immediately() {
|
|||
equal(inStatus, Cr.NS_ERROR_ABORT);
|
||||
await new Promise(resolve => do_timeout(50, resolve));
|
||||
equal(await trrServer.requestCount("example.org", "A"), 2);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
add_task(async function cancel_delayed() {
|
||||
dns.clearCache(true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче