Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

test(desktop): wait for fixture installer cleanup before the next scenario (#776)

tianma-ifee94cdf60023
diff --git a/scripts/verify-native-desktop-update.mjs b/scripts/verify-native-desktop-update.mjs
index 2459f6d1..883caf6a 100644
--- a/scripts/verify-native-desktop-update.mjs
+++ b/scripts/verify-native-desktop-update.mjs
@@ -210,7 +210,10 @@ try {
writeFileSync(join(directory, "result.json"), JSON.stringify(report.scenarios.at(-1), null, 2));
} finally {
await stopFixture(events());
- if (process.platform === "win32") stopWindowsUpdateFixtures();
+ if (process.platform === "win32") {
+ stopWindowsUpdateFixtures();
+ await until(() => !windowsUpdateInstallerRunning(packageName(latestVersion)), "previous fixture installer releases its process lock");
+ }
await wait(1_000);
}
}