-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces the hardcoded FIXME sleep(500ms) timeout in each test. Instead, we track any pending `PerformanceObserver`s and wait for them to disconnect before continuing. This doesn't magically make the tests run faster, in a way it just hides the timeout, because the implementation actually still waits for `OBSERVER_WAIT_TIME_MS` (300ms) internally before disconnecting the PO. However, this makes the tests follow the actual real world behavior and they are only as slow as the actual behavior IRL. IMO, the timeout isn't actually necessary IF we have PO available, and that can be removed in a future refactor. When we address that, most of the tests will automatically run faster.
- Loading branch information
1 parent
9f8149c
commit 21cdc9b
Showing
1 changed file
with
143 additions
and
11 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