Bug 1601893 - Fix Remote Settings test about events on release r=glasserc

Differential Revision: https://phabricator.services.mozilla.com/D57761

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mathieu Leplatre 2019-12-19 15:03:31 +00:00
Родитель 762801c6fa
Коммит 7e8fc190b6
1 изменённых файлов: 24 добавлений и 22 удалений

Просмотреть файл

@ -215,28 +215,30 @@ add_task(async function test_downloader_is_accessible_via_client() {
add_task(clear_state);
add_task(async () => {
const client = RemoteSettings("some-collection");
await withFakeChannel("nightly", async () => {
const client = RemoteSettings("some-collection");
const record = {
attachment: {
...RECORD.attachment,
location: "404-error.pem",
},
};
try {
await client.attachments.download(record, { retry: 0 });
} catch (e) {}
TelemetryTestUtils.assertEvents([
[
"uptake.remotecontent.result",
"uptake",
"remotesettings",
UptakeTelemetry.STATUS.DOWNLOAD_ERROR,
{
source: client.identifier,
const record = {
attachment: {
...RECORD.attachment,
location: "404-error.pem",
},
],
]);
};
try {
await client.attachments.download(record, { retry: 0 });
} catch (e) {}
TelemetryTestUtils.assertEvents([
[
"uptake.remotecontent.result",
"uptake",
"remotesettings",
UptakeTelemetry.STATUS.DOWNLOAD_ERROR,
{
source: client.identifier,
},
],
]);
});
});