mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
8aab5a4b33
commit
b6e87e7dbc
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user