Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion reference-implementation/test/autostart-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ test("failed native result is rejected for that command", async () => {
const path = join(dir, "autostart-commands");
let commandId = "";
for (let attempt = 0; attempt < 100; attempt += 1) {
const files = await readdir(path).catch(() => []);
// The store writes <id>.json.<uuid>.tmp and renames it; only a committed command file names the id.
const files = (await readdir(path).catch(() => [])).filter(name => name.endsWith(".json"));
if (files.length) { commandId = files[0]!.replace(".json", ""); break; }
await new Promise(resolve => setTimeout(resolve, 5));
}
Expand Down
Loading