-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π skip worker timing when no worker is used (#3147)
* β set workerStart to 0 in mocked resource entries `workerStart` defaults to 0 in resource entries, not 'undefined'. This commit sets the correct default. It also removes the type cast, so we have proper typechecking and we don't miss future properties in the mock. To do this, I had to define all other properties so the entry is actually complete. * β simplify the test assertion We don't need to re-check every single timings, just focus on the worker one. * π do not use undefined worker timings `workerStart` defaults to 0 when there is no worker in use. Make sure it is not 0 before collecting it.
- Loading branch information
1 parent
66ceb30
commit 82d898a
Showing
2 changed files
with
13 additions
and
13 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