Bug 1254726 - fix intermittent test_action-clear-snapshots_06 (osx10.6);r=fitzgen

After enabling diff view and selecting two snapshots, wait for TAKE_CENSUS_DIFF_END
action in the test before deleting all snapshots. Otherwise, TAKE_CENSUS_DIFF_END
might be dispatched after clearSnapshots toggled diff mode off.

MozReview-Commit-ID: HNmIVn1SC8c

--HG--
extra : rebase_source : 5f4e5541d07b7ab911773c197430857c29be7c6d
This commit is contained in:
Julian Descottes 2016-03-11 03:04:07 +01:00
parent 8aab5a4b33
commit b6e87e7dbc

View File

@ -39,8 +39,12 @@ add_task(function* () {
getState().snapshots[0]));
dispatch(selectSnapshotForDiffingAndRefresh(heapWorker,
getState().snapshots[1]));
ok(getState().diffing, "We should be in diffing view");
yield waitUntilAction(store, actions.TAKE_CENSUS_DIFF_END);
ok(true, "Received TAKE_CENSUS_DIFF_END action");
ok(true, "Dispatch clearSnapshots action");
let deleteEvents = Promise.all([
waitUntilAction(store, actions.DELETE_SNAPSHOTS_START),