Fix tests

pull/513/head
Zef Hemel 2023-08-27 18:05:14 +02:00
parent c3d384330d
commit cc2448b91f
1 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,7 @@ export class ServerSystem {
spacePrimitives!: SpacePrimitives;
private requeueInterval?: number;
kvStore?: DenoKVStore;
listInterval?: number;
constructor(
private baseSpacePrimitives: SpacePrimitives,
@ -122,7 +123,7 @@ export class ServerSystem {
markdownSyscalls(buildMarkdown(loadMarkdownExtensions(this.system))),
);
setInterval(() => {
this.listInterval = setInterval(() => {
space.updatePageList().catch(console.error);
}, fileListInterval);
@ -169,6 +170,7 @@ export class ServerSystem {
async close() {
clearInterval(this.requeueInterval);
clearInterval(this.listInterval);
await this.system.unloadAll();
}
}