Try fixing hanging e2e tests #183

Merged
schmelczer merged 11 commits from asch/dead-locks into main 2025-12-14 17:19:25 +00:00
Showing only changes of commit 45505a4bf7 - Show all commits

Wait for idle instead

Andras Schmelczer 2025-12-14 11:06:49 +00:00

View file

@ -171,7 +171,7 @@ export class Syncer {
// in that case, we mustn't move it again.
if (
this.database.getLatestDocumentByRelativePath(relativePath) ===
undefined ||
undefined ||
this.database.getLatestDocumentByRelativePath(relativePath)
?.isDeleted === true
) {
@ -264,7 +264,7 @@ export class Syncer {
public async waitUntilFinished(): Promise<void> {
await this.runningScheduleSyncForOfflineChanges;
await this.syncQueue.onEmpty();
await this.syncQueue.onIdle(); // Wait for queue to be empty and running tasks to finish
}
public async syncRemotelyUpdatedFile(