Fix inifinite loop at end of test

This commit is contained in:
Andras Schmelczer 2025-02-25 20:32:37 +00:00
parent a7b518d7ea
commit a5bcaec9fe
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 5 additions and 3 deletions

View file

@ -141,6 +141,7 @@ export class SyncClient {
/// and the local database but retain the settings.
/// The SyncClient can be used again after calling this method.
public async reset(): Promise<void> {
this.stop();
await this._syncer.reset();
this._history.reset();
await this._database.resetSyncState();