Make messaging/relink mock test more reliable

Co-authored-by: Fedor Indutny <indutny@signal.org>
This commit is contained in:
Scott Nonnenberg 2024-08-15 10:13:48 +10:00 committed by GitHub
parent 3914216f5c
commit c040cb2d6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 63 additions and 19 deletions

View file

@ -180,6 +180,10 @@ export class App extends EventEmitter {
return window.evaluate('window.SignalCI.unlink()');
}
public async waitForUnlink(): Promise<void> {
return this.waitForEvent('unlinkCleanupComplete');
}
// EventEmitter types
public override on(type: 'close', callback: () => void): this;