Skip to content

Commit 6fb3238

Browse files
authored
Merge pull request #3 from hypothesis/wait-timeout-error-fix
Fix message from error thrown by waitFor when failTimeout is exceeded
2 parents 8a3773a + 8b6a250 commit 6fb3238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wait.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function waitFor<T>(
7474

7575
if (now - start > failTimeout) {
7676
clearTimeout(timer);
77-
reject(new Error(`waitFor(${what}) failed after ${timeout} ms`));
77+
reject(new Error(`waitFor(${what}) failed after ${failTimeout} ms`));
7878
}
7979
});
8080
});

0 commit comments

Comments
 (0)