Bug 1892105 - Add a postRecoveryComplete Promise getter to BackupService. r=backup-reviewers,kpatenio

This Promise is mainly for use by Marionette tests to know when to check
data stores that might have been updated by postRecovery steps.

Differential Revision: https://phabricator.services.mozilla.com/D208938
This commit is contained in:
Mike Conley
2024-05-01 14:54:35 +00:00
parent c22620b4e7
commit 0616eead57
2 changed files with 36 additions and 0 deletions

View File

@@ -391,6 +391,7 @@ add_task(async function test_checkForPostRecovery() {
});
await bs.checkForPostRecovery(testProfilePath);
await bs.postRecoveryComplete;
Assert.ok(
FakeBackupResource1.prototype.postRecovery.calledOnce,