-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Stop calling
waitFor
callback after timeout (#1271)
* prevent waitFor callback racing condition * change logic * adapt the waitFor resolve test to make it more readable * surface `timeout` + waitFor `callback` calls * adding comment * adding reproductible test * robuster assertion for not calling callback again --------- Co-authored-by: Kevin Bon <kbon@hubspot.com> Co-authored-by: Sebastian Silbermann <sebastian.silbermann@klarna.com>
- Loading branch information
1 parent
a7b7252
commit 9aaf715
Showing
2 changed files
with
109 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters