mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 23:06:17 +01:00
test: type shared archive waiters as an array
This commit is contained in:
1 parent
958211c061
commit
41770bc08b
1 file changed
+1
-1
@@ -669,7 +669,7 @@ describeDatabase("remote workspace ordinary file routes", () => {
|
||||
const first = Promise.allSettled([opener(input)]);
|
||||
const controllers = [new AbortController(), new AbortController(), new AbortController()];
|
||||
const observing = controllers.map(controller => observeIndexWait(controller.signal));
|
||||
let waiters: typeof first | undefined, primary: unknown;
|
||||
let waiters: Promise<PromiseSettledResult<Awaited<ReturnType<typeof opener>>>[]> | undefined, primary: unknown;
|
||||
try {
|
||||
await vi.waitFor(() => expect(reading).toBe(true), { timeout: 5000 });
|
||||
waiters = Promise.allSettled(controllers.map(controller => opener({ ...input, signal: controller.signal })));
|
||||
|
||||
Reference in new issue
Block a user