From b6e87e7dbc206264b7c6136e994a3502ed5d2b4f Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Fri, 11 Mar 2016 03:04:07 +0100 Subject: [PATCH] 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 --- .../client/memory/test/unit/test_action-clear-snapshots_06.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devtools/client/memory/test/unit/test_action-clear-snapshots_06.js b/devtools/client/memory/test/unit/test_action-clear-snapshots_06.js index a20e0051db44..f3b99ce23857 100644 --- a/devtools/client/memory/test/unit/test_action-clear-snapshots_06.js +++ b/devtools/client/memory/test/unit/test_action-clear-snapshots_06.js @@ -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),