Skip to content

An open-source, self-hosted system for apps built with web technologies.

Test: the storage-clearing test closes what the Program holds open before its folder goes

zohayrslileh7f786edb9d01
diff --git a/tests/program-installation-lifecycle.test.ts b/tests/program-installation-lifecycle.test.ts
index b45d21c..0fa28d9 100644
--- a/tests/program-installation-lifecycle.test.ts
+++ b/tests/program-installation-lifecycle.test.ts
@@ -205,4 +205,7 @@ test("clearing storage ends the Program's Processes and empties what it keeps, k
expect(manager.storageSize(program)).toBeLessThan(before)
// Its database opens again, empty.
expect(() => manager.databaseOf(program).query("CREATE TABLE notes (title TEXT)")).not.toThrow()
+
+ // Forgetting it closes what it holds open, which Windows needs before the folder can go.
+ await manager.forget(program)
})