Skip to content

Commit

Permalink
Strict patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Jan 16, 2024
1 parent 53d63b7 commit 715af09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/loot-core/src/shared/test-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export let tracer: null | ReturnType<typeof execTracer> = null;

function timeout<T extends Promise<unknown>>(promise: T, n: number) {
let resolve;
const timeoutPromise = new Promise(_ => (resolve = _));
let resolve: (response: string) => void;
const timeoutPromise = new Promise<string>(_ => (resolve = _));
const timer = setTimeout(() => resolve(`timeout(${n})`), n);

return Promise.race([
Expand Down

0 comments on commit 715af09

Please sign in to comment.