Bug 1584352 - Use sinon matcher instead of exact call list in Normandy addon rollout test r=Gijs

This avoids an intermittent test failure when other parts of Firefox set
experiments active while this test is running.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Michael Cooper 2019-10-02 18:22:22 +00:00
Родитель 0e59b1bfda
Коммит 52e089f981
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -74,9 +74,10 @@ decorate_task(
sendEventStub.assertEvents([
["enroll", "addon_rollout", recipe.arguments.slug],
]);
Assert.deepEqual(
setExperimentActiveStub.args,
[["test-rollout", "active", { type: "normandy-addonrollout" }]],
ok(
setExperimentActiveStub.calledWithExactly("test-rollout", "active", {
type: "normandy-addonrollout",
}),
"a telemetry experiment should be activated"
);