Skip to content

Commit 5afd97c

Browse files
committed
"Fix" a race condition with store disposal in fixtures.
#927.
1 parent fe3cb2e commit 5afd97c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/integration/fixtures.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async function cleanUpTopLevelStores(storagePath: string) {
6060
}
6161
})
6262
);
63+
//
6364
}
6465

6566
// When Draupnir starts (src/index.ts) it clobbers the config by resolving the management room
@@ -106,6 +107,8 @@ export const mochaHooks = {
106107
await this.toggle?.stopEverything();
107108
draupnirClient()?.stop();
108109
this.stores?.dispose();
110+
// With regret, please see https://github.com/the-draupnir-project/Draupnir/issues/927.
111+
await new Promise((resolve) => setTimeout(resolve, 50));
109112
if (this.draupnir !== undefined) {
110113
await Promise.all([
111114
this.draupnir.client.setAccountData(

0 commit comments

Comments
 (0)